Added CRAN archive to R package derivation to prevent R expressions from

breaking when any package is updated.
This commit is contained in:
Justin Bedo 2014-07-08 11:02:05 +10:00
parent 0a12a50b11
commit 57f1baa66d
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ let
derive = { name, version, sha256, depends ? [] }: buildRPackage { derive = { name, version, sha256, depends ? [] }: buildRPackage {
name = "${name}-${version}"; name = "${name}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://cran/src/contrib/${name}_${version}.tar.gz"; urls = [
"mirror://cran/src/contrib/${name}_${version}.tar.gz"
"mirror://cran/src/contrib/Archive/${name}/${name}_${version}.tar.gz"
];
inherit sha256; inherit sha256;
}; };
propagatedBuildInputs = depends; propagatedBuildInputs = depends;