sile: amend hacks of removing $(pwd)

Just like commit 3af97fc9ee
This commit is contained in:
Vladimír Čunát 2023-08-05 19:22:27 +02:00
parent 5933731483
commit e313038fa9
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -108,8 +108,14 @@ stdenv.mkDerivation rec {
--replace "ASSERT(ht && ht->table && iter);" "ASSERT(ht && iter);"
'';
# Hack to avoid TMPDIR in RPATHs.
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
# remove forbidden references to $TMPDIR
preFixup = lib.optionalString stdenv.isLinux ''
for f in "$out"/bin/*; do
if isELF "$f"; then
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
fi
done
'';
outputs = [ "out" "doc" "man" "dev" ];