displaylink: add dependency on required-file source to avoid unchanged manual interactions needed
This commit is contained in:
parent
60c52a73f1
commit
a061b27b2d
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
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
|
mkdir -p $out/lib/udev/rules.d $out/share
|
||||||
cp ${./99-displaylink.rules} $out/lib/udev/rules.d/99-displaylink.rules
|
cp ${./99-displaylink.rules} $out/lib/udev/rules.d/99-displaylink.rules
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
||||||
|
@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
|
||||||
$out/bin/DisplayLinkManager
|
$out/bin/DisplayLinkManager
|
||||||
wrapProgram $out/bin/DisplayLinkManager \
|
wrapProgram $out/bin/DisplayLinkManager \
|
||||||
--run "cd $out/lib/displaylink"
|
--run "cd $out/lib/displaylink"
|
||||||
|
|
||||||
|
# We introduce a dependency on the source file so that it need not be redownloaded everytime
|
||||||
|
echo $src >> "$out/share/workspace_dependencies.pin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in a new issue