displaylink: add missing phase hooks
This commit is contained in:
parent
859ee774e1
commit
1551a2e3e2
@ -41,12 +41,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
nativeBuildInputs = [ unzip makeWrapper ];
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
unzip $src
|
||||
chmod +x displaylink-driver-${finalAttrs.version}.run
|
||||
./displaylink-driver-${finalAttrs.version}.run --target . --noexec --nodiskspace
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/lib/displaylink *.spkg
|
||||
install -Dm755 ${bins}/DisplayLinkManager $out/bin/DisplayLinkManager
|
||||
mkdir -p $out/lib/udev/rules.d $out/share
|
||||
@ -60,6 +63,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# We introduce a dependency on the source file so that it need not be redownloaded everytime
|
||||
echo $src >> "$out/share/workspace_dependencies.pin"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
dontStrip = true;
|
||||
|
Loading…
Reference in New Issue
Block a user