Unverified Commit f6ada863 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

displaylink: reformat with `nixfmt-rfc-style`

parent c7199913
Loading
Loading
Loading
Loading
+29 −15
Original line number Diff line number Diff line
{ stdenv
, lib
, unzip
, util-linux
, libusb1
, evdi
, makeBinaryWrapper
, requireFile
{
  stdenv,
  lib,
  unzip,
  util-linux,
  libusb1,
  evdi,
  makeBinaryWrapper,
  requireFile,
}:

let
  bins =
    if stdenv.hostPlatform.system == "x86_64-linux" then "x64-ubuntu-1604"
    else if stdenv.hostPlatform.system == "i686-linux" then "x86-ubuntu-1604"
    else if stdenv.hostPlatform.system == "aarch64-linux" then "aarch64-linux-gnu"
    else throw "Unsupported architecture";
  libPath = lib.makeLibraryPath [ stdenv.cc.cc util-linux libusb1 evdi ];
    if stdenv.hostPlatform.system == "x86_64-linux" then
      "x64-ubuntu-1604"
    else if stdenv.hostPlatform.system == "i686-linux" then
      "x86-ubuntu-1604"
    else if stdenv.hostPlatform.system == "aarch64-linux" then
      "aarch64-linux-gnu"
    else
      throw "Unsupported architecture";
  libPath = lib.makeLibraryPath [
    stdenv.cc.cc
    util-linux
    libusb1
    evdi
  ];
in
stdenv.mkDerivation (finalAttrs: {
  pname = "displaylink";
@@ -79,7 +89,11 @@ stdenv.mkDerivation (finalAttrs: {
    license = licenses.unfree;
    mainProgram = "DisplayLinkManager";
    maintainers = with maintainers; [ abbradar ];
    platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
    platforms = [
      "x86_64-linux"
      "i686-linux"
      "aarch64-linux"
    ];
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
  };
})