summary refs log tree commit diff
path: root/pkgs/development/libraries/libxc
diff options
context:
space:
mode:
authorPhillip Seeber <phillip.seeber@googlemail.com>2021-11-10 12:29:53 +0100
committerPhillip Seeber <phillip.seeber@googlemail.com>2021-11-22 12:28:47 +0100
commit2a9baed9062f60d06849aabd41bae916f714f508 (patch)
tree97de80c8d2debfd960d0b867e6152b7661366342 /pkgs/development/libraries/libxc
parentdd7f587346aa6f57e25628643149982041e02655 (diff)
libxc: force 3rd and 4th derivatives compilation
libxc: formatting


libxc: platforms

Diffstat (limited to 'pkgs/development/libraries/libxc')
-rw-r--r--pkgs/development/libraries/libxc/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxc/default.nix b/pkgs/development/libraries/libxc/default.nix
index 653f437646825..046d630888c45 100644
--- a/pkgs/development/libraries/libxc/default.nix
+++ b/pkgs/development/libraries/libxc/default.nix
@@ -17,7 +17,15 @@ stdenv.mkDerivation rec {
     patchShebangs ./
   '';
 
-  cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
+  cmakeFlags = [
+    "-DENABLE_FORTRAN=ON"
+    "-DBUILD_SHARED_LIBS=ON"
+    # Force compilation of higher derivatives
+    "-DDISABLE_VXC=0"
+    "-DDISABLE_FXC=0"
+    "-DDISABLE_KXC=0"
+    "-DDISABLE_LXC=0"
+  ];
 
   preCheck = ''
     export LD_LIBRARY_PATH=$(pwd)
@@ -29,7 +37,7 @@ stdenv.mkDerivation rec {
     description = "Library of exchange-correlation functionals for density-functional theory";
     homepage = "https://www.tddft.org/programs/Libxc/";
     license = licenses.mpl20;
-    platforms = [ "x86_64-linux" ];
+    platforms = platforms.unix;
     maintainers = with maintainers; [ markuskowa ];
   };
 }