3
0
Fork 0
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:
Marc Weber 2008-08-21 11:07:52 +00:00
parent c4270fb9b8
commit fa321143d1

View file

@ -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; }