octopus libxc: Change source as upstream tdft.org has disappeared
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
{ stdenv, fetchurl, gfortran, perl }:
|
||||
{ stdenv, fetchFromGitLab, autoreconfHook, gfortran, perl }:
|
||||
|
||||
let
|
||||
common = scripts: version: sha256: stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
name = "libxc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz";
|
||||
src = fetchFromGitLab {
|
||||
owner = "libxc";
|
||||
repo = "libxc";
|
||||
rev = version;
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ gfortran perl ];
|
||||
buildInputs = [ autoreconfHook gfortran perl ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ${scripts}
|
||||
@@ -25,6 +27,6 @@ let
|
||||
};
|
||||
|
||||
in {
|
||||
libxc404 = common "scripts" "4.0.4" "0j4ics5hkwjs1grivy8762b05fr8in7wswncm8ym65fy7v27kvxj";
|
||||
libxc301 = common "src testsuite" "3.0.1" "1xyac89yx03vm86rvk07ps1d39xss3amw46a1k53mv30mgr94rl3";
|
||||
libxc404 = common "scripts" "4.0.4" "0h0rqmcsknr4b8ywadmpgfxzczhgfydn1p1qispmz2s97mcg8ws1";
|
||||
libxc301 = common "src testsuite" "3.0.1" "108y6qnnsw7lhsyg25c42ilxy4klvsagnwdjy10xgnnwq9dh667k";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user