Unverified Commit e313038f authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

sile: amend hacks of removing $(pwd)

Just like commit 3af97fc9
parent 59337314
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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" ];