summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-27 09:42:00 +0100
committerGitHub <noreply@github.com>2021-01-27 09:42:00 +0100
commite74fd33ada9e5d26ec57f3e245fe1ed49e8563fa (patch)
treee74a6bda6596673521b1a56046e77e1db0498c31 /pkgs
parent15a64b2facc1b91f4361bdd101576e8886ef834b (diff)
parent308ee1ca1158f60816df4db3f24c4a5c3b809ead (diff)
Merge pull request #110889 from markuskowa/upd-libxc5
libxc: 4.3.4 -> 5.1.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/libxc/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/libraries/libxc/default.nix b/pkgs/development/libraries/libxc/default.nix
index d26518c7de98..0a93babb4599 100644
--- a/pkgs/development/libraries/libxc/default.nix
+++ b/pkgs/development/libraries/libxc/default.nix
@@ -1,32 +1,39 @@
-{ lib, stdenv, fetchurl, gfortran, perl }:
+{ lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
let
- version = "4.3.4";
+ version = "5.1.0";
in stdenv.mkDerivation {
pname = "libxc";
inherit version;
- src = fetchurl {
- url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz";
- sha256 = "0dw356dfwn2bwjdfwwi4h0kimm69aql2f4yk9f2kk4q7qpfkgvm8";
+
+ src = fetchFromGitLab {
+ owner = "libxc";
+ repo = "libxc";
+ rev = version;
+ sha256 = "0qbxh0lfx4cab1fk1qfnx72g4yvs376zqrq74jn224vy32nam2x7";
};
buildInputs = [ gfortran ];
- nativeBuildInputs = [ perl ];
+ nativeBuildInputs = [ perl cmake ];
preConfigure = ''
patchShebangs ./
'';
- configureFlags = [ "--enable-shared" ];
+ cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
+
+ preCheck = ''
+ export LD_LIBRARY_PATH=$(pwd)
+ '';
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
description = "Library of exchange-correlation functionals for density-functional theory";
- homepage = "https://octopus-code.org/wiki/Libxc";
- license = licenses.lgpl3;
+ homepage = "https://www.tddft.org/programs/Libxc/";
+ license = licenses.mpl20;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ markuskowa ];
};