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

33 lines
824 B
Nix
Raw Normal View History

2017-12-31 06:11:12 +01:00
{ stdenv, fetchurl, gfortran, perl }:
let
2018-01-26 05:36:48 +01:00
version = "3.0.1";
2017-12-31 06:11:12 +01:00
in stdenv.mkDerivation {
name = "libxc-${version}";
src = fetchurl {
2018-01-26 05:36:48 +01:00
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz";
sha256 = "1xyac89yx03vm86rvk07ps1d39xss3amw46a1k53mv30mgr94rl3";
2017-12-31 06:11:12 +01:00
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ];
preConfigure = ''
patchShebangs ./
'';
configureFlags = [ "--enable-shared" ];
doCheck = true;
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Library of exchange-correlation functionals for density-functional theory";
homepage = http://octopus-code.org/wiki/Libxc;
license = licenses.lgpl3;
platforms = [ "x86_64-linux" ];
2017-12-31 07:52:39 +01:00
maintainers = with maintainers; [ markuskowa ];
2017-12-31 06:11:12 +01:00
};
}