displaylink: Add aarch64 support
This commit is contained in:
parent
a26197b4e5
commit
ca7dccc8a9
2 changed files with 6 additions and 6 deletions
|
@ -12,11 +12,11 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
arch =
|
bins =
|
||||||
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
|
if stdenv.hostPlatform.system == "x86_64-linux" then "x64-ubuntu-1604"
|
||||||
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
|
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";
|
else throw "Unsupported architecture";
|
||||||
bins = "${arch}-ubuntu-1604";
|
|
||||||
libPath = lib.makeLibraryPath [ stdenv.cc.cc util-linux libusb1 evdi ];
|
libPath = lib.makeLibraryPath [ stdenv.cc.cc util-linux libusb1 evdi ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://www.displaylink.com/";
|
homepage = "https://www.displaylink.com/";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
||||||
hydraPlatforms = [];
|
hydraPlatforms = [];
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,6 +43,6 @@ stdenv.mkDerivation rec {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = with licenses; [ lgpl21Only gpl2Only ];
|
license = with licenses; [ lgpl21Only gpl2Only ];
|
||||||
homepage = "https://www.displaylink.com/";
|
homepage = "https://www.displaylink.com/";
|
||||||
broken = kernel.kernelOlder "4.19" || stdenv.isAarch64;
|
broken = kernel.kernelOlder "4.19";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue