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