Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 32 lines 824 B view raw
1{ stdenv, fetchurl, gfortran, perl }: 2 3let 4 version = "3.0.1"; 5 6in stdenv.mkDerivation { 7 name = "libxc-${version}"; 8 src = fetchurl { 9 url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz"; 10 sha256 = "1xyac89yx03vm86rvk07ps1d39xss3amw46a1k53mv30mgr94rl3"; 11 }; 12 13 buildInputs = [ gfortran ]; 14 nativeBuildInputs = [ perl ]; 15 16 preConfigure = '' 17 patchShebangs ./ 18 ''; 19 20 configureFlags = [ "--enable-shared" ]; 21 22 doCheck = true; 23 enableParallelBuilding = true; 24 25 meta = with stdenv.lib; { 26 description = "Library of exchange-correlation functionals for density-functional theory"; 27 homepage = http://octopus-code.org/wiki/Libxc; 28 license = licenses.lgpl3; 29 platforms = [ "x86_64-linux" ]; 30 maintainers = with maintainers; [ markuskowa ]; 31 }; 32}