33 lines
894 B
Nix
33 lines
894 B
Nix
{ stdenv, fetchFromGitLab, autoreconfHook, gfortran, perl }:
|
|
|
|
let
|
|
common = scripts: version: sha256: stdenv.mkDerivation rec {
|
|
inherit version;
|
|
name = "libxc-${version}";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "libxc";
|
|
repo = "libxc";
|
|
rev = version;
|
|
inherit sha256;
|
|
};
|
|
|
|
buildInputs = [ autoreconfHook gfortran perl ];
|
|
|
|
postPatch = ''
|
|
patchShebangs ${scripts}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://octopus-code.org/wiki/Libxc;
|
|
description = "Libxc is a library of exchange-correlation functionals for density-functional theory.";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl3;
|
|
};
|
|
};
|
|
|
|
in {
|
|
libxc404 = common "scripts" "4.0.4" "0h0rqmcsknr4b8ywadmpgfxzczhgfydn1p1qispmz2s97mcg8ws1";
|
|
libxc301 = common "src testsuite" "3.0.1" "108y6qnnsw7lhsyg25c42ilxy4klvsagnwdjy10xgnnwq9dh667k";
|
|
}
|