summary refs log tree commit diff
path: root/pkgs/development/libraries/libxc
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-11-30 21:20:59 +0000
committerRobert Scott <code@humanleg.org.uk>2021-12-01 19:17:55 +0000
commitf0a01556c72c279fd16f3c52665b1453eef5b334 (patch)
treeaafe69309c90d4cf31a9bd9b48998d04b31f0073 /pkgs/development/libraries/libxc
parent39b1caa278d8bd9d142dc4900e8ba2de78ddccc2 (diff)
libxc: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/libxc')
-rw-r--r--pkgs/development/libraries/libxc/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libxc/default.nix b/pkgs/development/libraries/libxc/default.nix
index 046d630888c45..5ed5ef1fc3732 100644
--- a/pkgs/development/libraries/libxc/default.nix
+++ b/pkgs/development/libraries/libxc/default.nix
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DENABLE_FORTRAN=ON"
     "-DBUILD_SHARED_LIBS=ON"
+    # needed for tests to link
+    "-DCMAKE_SKIP_BUILD_RPATH=OFF"
     # Force compilation of higher derivatives
     "-DDISABLE_VXC=0"
     "-DDISABLE_FXC=0"
@@ -27,10 +29,6 @@ stdenv.mkDerivation rec {
     "-DDISABLE_LXC=0"
   ];
 
-  preCheck = ''
-    export LD_LIBRARY_PATH=$(pwd)
-  '';
-
   doCheck = true;
 
   meta = with lib; {