displaylink: Add aarch64 support

This commit is contained in:
Rowan Goemans 2023-10-24 01:58:10 +02:00
parent a26197b4e5
commit ca7dccc8a9
2 changed files with 6 additions and 6 deletions

View file

@ -12,11 +12,11 @@
}:
let
arch =
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
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";
bins = "${arch}-ubuntu-1604";
libPath = lib.makeLibraryPath [ stdenv.cc.cc util-linux libusb1 evdi ];
in
@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
homepage = "https://www.displaylink.com/";
license = licenses.unfree;
maintainers = with maintainers; [ abbradar ];
platforms = [ "x86_64-linux" "i686-linux" ];
platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
hydraPlatforms = [];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};

View file

@ -43,6 +43,6 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = with licenses; [ lgpl21Only gpl2Only ];
homepage = "https://www.displaylink.com/";
broken = kernel.kernelOlder "4.19" || stdenv.isAarch64;
broken = kernel.kernelOlder "4.19";
};
}