basing nix-repository-manager on haskellPackages. The executable is no

longer recompiled when the config changes only

svn path=/nixpkgs/trunk/; revision=16297
This commit is contained in:
Marc Weber
2009-07-09 22:24:05 +00:00
parent 676f4c4e2d
commit f38e400515
3 changed files with 85 additions and 2 deletions
@@ -19,7 +19,7 @@ args:
"run NO_FETCH=1 nix-repository-manager <path to nixpkgs> --update <reponame> to add it automatically";
localTarGZ = managedRepoDir+"/dist/${ lib.dropPath (head fetchinfo.urls) }"; # hack, dropPath should be implemented as primop
fetchInfos = import ../../../misc/bleeding-edge-fetch-infos.nix; in
if (getConfig ["bleedingEdgeRepos" "useLocalRepos"] false )
if (getConfig ["bleedingEdgeRepos" "useLocalRepos"] false && builtins.pathExists localTarGZ)
then localTarGZ else fetchinfo;
repos =
@@ -31,7 +31,7 @@ args:
# each repository has
# a type, url and maybe a tag
# you can add groups names to update some repositories at once
# see nix_repository_manager expression in all-packages.nix
# see nix-repository-manager expression in haskellPackages
nix_repository_manager = { type = "darcs"; url = "http://mawercer.de/~marc/repos/nix-repository-manager"; };