about summary refs log tree commit diff
path: root/pkgs/development/libraries/galario
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-07-19 17:44:16 +0300
committerArtturin <Artturin@artturin.com>2022-07-19 17:47:13 +0300
commit6b8c65acd97bb59c917a018f9c84061f91e26e1a (patch)
tree16d6d9bea2547a9ab6a16913f0d23ccf4949db19 /pkgs/development/libraries/galario
parentcfe78489c90b8ba3adb0713b16c984c84e863664 (diff)
treewide: fix fallout from 'cmake/setup-hook.sh: Don't skip build-RPATH'
Diffstat (limited to 'pkgs/development/libraries/galario')
-rw-r--r--pkgs/development/libraries/galario/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/galario/default.nix b/pkgs/development/libraries/galario/default.nix
index 8454bcfc219f8..ac7e4f4255e84 100644
--- a/pkgs/development/libraries/galario/default.nix
+++ b/pkgs/development/libraries/galario/default.nix
@@ -49,9 +49,15 @@ stdenv.mkDerivation rec {
   '';
 
   preCheck = ''
+    ${if stdenv.isDarwin then "export DYLD_LIBRARY_PATH=$(pwd)/src/" else "export LD_LIBRARY_PATH=$(pwd)/src/"}
     ${if enablePython then "sed -i -e 's|^#!.*|#!${stdenv.shell}|' python/py.test.sh" else ""}
   '';
 
+  cmakeFlags = lib.optionals enablePython [
+    # RPATH of binary /nix/store/.../lib/python3.10/site-packages/galario/double/libcommon.so contains a forbidden reference to /build/
+    "-DCMAKE_SKIP_BUILD_RPATH=ON"
+  ];
+
   doCheck = true;
 
   postInstall = lib.optionalString (stdenv.isDarwin && enablePython) ''