diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-08-05 18:07:55 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-08-05 18:08:18 +0200 |
commit | f4cd4143bb46a2f1674774f471b16564659c1788 (patch) | |
tree | 4e585ad44ed5cf988f8a6282f1a0376b330b62c3 /pkgs/applications/misc/digitalbitbox | |
parent | 1f4ccf115c9f569c97d806a2e588d04840100c2c (diff) |
openafs, digitalbitbox: amend hacks of removing $(pwd)
Just like commit 3af97fc9ee54f7e5
Diffstat (limited to 'pkgs/applications/misc/digitalbitbox')
-rw-r--r-- | pkgs/applications/misc/digitalbitbox/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/applications/misc/digitalbitbox/default.nix b/pkgs/applications/misc/digitalbitbox/default.nix index 4771cebc3411d..8c8f4a1c94670 100644 --- a/pkgs/applications/misc/digitalbitbox/default.nix +++ b/pkgs/applications/misc/digitalbitbox/default.nix @@ -103,15 +103,21 @@ in mkDerivation rec { cp src/hidapi/libusb/.libs/*.so* $out/lib cp src/univalue/.libs/*.so* $out/lib - # [RPATH][patchelf] Avoid forbidden reference error - rm -rf $PWD - # Provide udev rules as documented in https://digitalbitbox.com/start_linux mkdir -p "$out/etc/udev/rules.d" ${copyUdevRuleToOutput "51-hid-digitalbox.rules" udevRule51} ${copyUdevRuleToOutput "52-hid-digitalbox.rules" udevRule52} ''; + # remove forbidden references to $TMPDIR + preFixup = '' + for f in "$out"/{bin,lib}/*; do + if [ -f "$f" ] && isELF "$f"; then + patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f" + fi + done + ''; + enableParallelBuilding = true; meta = with lib; { |