Skip to content

Commit

Permalink
displaylink: use finalAttrs pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 2, 2024
1 parent 0a42318 commit 859ee77
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkgs/os-specific/linux/displaylink/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
, util-linux
, libusb1
, evdi
, systemd
, makeWrapper
, requireFile
, substituteAll
}:

let
Expand All @@ -17,9 +15,8 @@ let
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 rec {
stdenv.mkDerivation (finalAttrs: {
pname = "displaylink";
version = "5.8.0-63.33";

Expand All @@ -45,8 +42,8 @@ stdenv.mkDerivation rec {

unpackPhase = ''
unzip $src
chmod +x displaylink-driver-${version}.run
./displaylink-driver-${version}.run --target . --noexec --nodiskspace
chmod +x displaylink-driver-${finalAttrs.version}.run
./displaylink-driver-${finalAttrs.version}.run --target . --noexec --nodiskspace
'';

installPhase = ''
Expand Down Expand Up @@ -77,4 +74,4 @@ stdenv.mkDerivation rec {
hydraPlatforms = [];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}
})

0 comments on commit 859ee77

Please sign in to comment.