summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-12-03 13:28:51 +0000
committerGitHub <noreply@github.com>2021-12-03 13:28:51 +0000
commit1227d3631d90cdfd464cd818c9206837ec9bc23c (patch)
treea59541f6d042a3d2c3d182791bf39fc2929e023a
parentMerge pull request #148422 from NixOS/backport-148418-to-release-21.11 (diff)
parentlibxc: fix darwin build (diff)
downloadnixpkgs-1227d3631d90cdfd464cd818c9206837ec9bc23c.tar.gz
Merge pull request #148229 from NixOS/backport-148073-to-release-21.11
[Backport release-21.11] libxc: fix darwin build
-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 046d630888c4..5ed5ef1fc373 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; {