about summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-5
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-08-13 05:40:01 +0300
committerArtturin <Artturin@artturin.com>2023-08-13 05:40:01 +0300
commit5c6ae8863d1dea6684f7db26aeb5e4d9d7f5acf7 (patch)
tree2441408dbdb1c1b60f964283a4b570d72c373d3e /pkgs/development/libraries/qt-5
parentaf9458db2deab7e80cff3f87b8ca68f22ec8c446 (diff)
treewide: Amend hacks of removing $(pwd)
The strip phase is using $TMPDIR now, so it would fail with:
`mktemp: failed to create file via template 'striperr.XXXXXX': No such file or directory`
Diffstat (limited to 'pkgs/development/libraries/qt-5')
-rw-r--r--pkgs/development/libraries/qt-5/modules/qtwebkit.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
index a70ebd3fb74fc..fc1766488ecc8 100644
--- a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
+++ b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
@@ -47,12 +47,13 @@ qtModule {
 
   doCheck = false; # fails 13 out of 13 tests (ctest)
 
-  # Hack to avoid TMPDIR in RPATHs.
-  preFixup = ''
-    rm -rf "$(pwd)"
-    mkdir "$(pwd)"
+  # remove forbidden references to $TMPDIR
+  preFixup = lib.optionalString stdenv.isLinux ''
+    patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/libexec/*
   '';
 
+  enableParallelBuilding = true;
+
   meta = {
     maintainers = with lib.maintainers; [ abbradar periklis ];
     knownVulnerabilities = [