nixpkgs/pkgs/development/libraries/libxc/default.nix

36 lines
823 B
Nix
Raw Normal View History

2021-01-26 20:57:03 +00:00
{ lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
2017-12-31 05:11:12 +00:00
2021-07-17 18:56:23 +01:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "libxc";
2021-11-01 16:01:25 +00:00
version = "5.1.7";
2021-01-26 20:57:03 +00:00
src = fetchFromGitLab {
owner = "libxc";
repo = "libxc";
rev = version;
2021-11-01 16:01:25 +00:00
sha256 = "0s01q5sh50544s7q2q7kahcqydlyzk1lx3kg1zwl76y90942bjd1";
2017-12-31 05:11:12 +00:00
};
nativeBuildInputs = [ perl cmake gfortran ];
2017-12-31 05:11:12 +00:00
preConfigure = ''
patchShebangs ./
'';
2021-01-26 20:57:03 +00:00
cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
preCheck = ''
export LD_LIBRARY_PATH=$(pwd)
'';
2017-12-31 05:11:12 +00:00
doCheck = true;
meta = with lib; {
2017-12-31 05:11:12 +00:00
description = "Library of exchange-correlation functionals for density-functional theory";
2021-01-26 20:57:03 +00:00
homepage = "https://www.tddft.org/programs/Libxc/";
license = licenses.mpl20;
platforms = [ "x86_64-linux" ];
2017-12-31 06:52:39 +00:00
maintainers = with maintainers; [ markuskowa ];
2017-12-31 05:11:12 +00:00
};
}