3
0
Fork 0
forked from mirrors/nixpkgs
svn path=/nixos/trunk/; revision=25987
This commit is contained in:
Eelco Dolstra 2011-02-16 10:24:25 +00:00
parent 32aa967ee1
commit 44ea6a7e4d

View file

@ -5,7 +5,7 @@ with pkgs.lib;
let
# Location of the repository on the harddrive
nixosPath = toString ../../.;
nixosPath = toString ../..;
# Check if the path is from the NixOS repository
isNixOSFile = path:
@ -20,7 +20,7 @@ let
# Partition module files because between NixOS and non-NixOS files. NixOS
# files may change if the repository is updated.
partitionnedModuleFiles =
partitionedModuleFiles =
let p = partition isNixOSFile moduleFiles; in
{ nixos = p.right; others = p.wrong; };
@ -32,7 +32,7 @@ let
"/etc/nixos/nixos" + removePrefix nixosPath (toString path);
relocateOthers = null;
in
{ nixos = map relocateNixOS partitionnedModuleFiles.nixos;
{ nixos = map relocateNixOS partitionedModuleFiles.nixos;
others = []; # TODO: copy the modules to the install-device repository.
};