lol

sile: amend hacks of removing $(pwd)

Just like commit 3af97fc9ee54f7e5

+8 -2
+8 -2
pkgs/tools/typesetting/sile/default.nix
··· 108 108 --replace "ASSERT(ht && ht->table && iter);" "ASSERT(ht && iter);" 109 109 ''; 110 110 111 - # Hack to avoid TMPDIR in RPATHs. 112 - preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" ''; 111 + # remove forbidden references to $TMPDIR 112 + preFixup = lib.optionalString stdenv.isLinux '' 113 + for f in "$out"/bin/*; do 114 + if isELF "$f"; then 115 + patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f" 116 + fi 117 + done 118 + ''; 113 119 114 120 outputs = [ "out" "doc" "man" "dev" ]; 115 121