forked from mirrors/nixpkgs
bleeding edge repos: only use local tar.gz files when enabled by custom config
svn path=/nixpkgs/trunk/; revision=12681
This commit is contained in:
parent
c4270fb9b8
commit
fa321143d1
|
@ -15,7 +15,7 @@ args:
|
|||
sourceByName = name :
|
||||
let localTarGZ = managedRepoDir+"/dist/${name}.tar.gz";
|
||||
fetchInfos = import ../../../misc/bleeding-edge-fetch-infos.nix; in
|
||||
if pathExists localTarGZ
|
||||
if (getConfig ["bleedingEdgeRepos" "useLocalRepos"] false ) && pathExists localTarGZ
|
||||
then localTarGZ
|
||||
else if __hasAttr name fetchInfos
|
||||
then (__getAttr name fetchInfos) { inherit fetchurl; }
|
||||
|
|
Loading…
Reference in a new issue