3
0
Fork 0
forked from mirrors/nixpkgs

* exportBuildReferencesGraph -> exportReferencesGraph.

svn path=/nixos/trunk/; revision=14593
This commit is contained in:
Eelco Dolstra 2009-03-18 18:10:38 +00:00
parent 5523326664
commit 3d8df9802d
2 changed files with 14 additions and 23 deletions

View file

@ -11,13 +11,11 @@
, # In addition to `contents', the closure of the store paths listed
# in `packages' are also placed in the Nix store of the CD. This is
# a list of attribute sets {source, target} where `source' if a
# store path whose closure will be copied, and `target' is a symlink
# to `source' that will be added to the CD.
# a list of attribute sets {object, symlink} where `object' if a
# store path whose closure will be copied, and `symlink' is a
# symlink to `object' that will be added to the CD.
storeContents ? []
, buildStoreContents ? []
, # Whether this should be an El-Torito bootable CD.
bootable ? false
@ -52,7 +50,5 @@ stdenv.mkDerivation {
# For obtaining the closure of `storeContents'.
exportReferencesGraph =
map (x: [("closure-" + baseNameOf x.object) x.object]) storeContents;
exportBuildReferencesGraph =
map (x: [("closure-build-" + baseNameOf x.object) x.object]) buildStoreContents;
pathsFromGraph = "${nixpkgsPath}/pkgs/build-support/kernel/paths-from-graph.pl";
}

View file

@ -461,21 +461,16 @@ rec {
};
# Closures to be copied to the Nix store on the CD.
storeContents = lib.uniqListExt {
inputList= lib.concatLists
storeContents =
lib.uniqListExt {
inputList = lib.concatLists
(map systemPackInstallClosures systemPacks);
getter = x : x.object.drvPath;
getter = x: x.object.drvPath;
compare = lib.eqStrings;
};
buildStoreContents = lib.uniqList
{
inputList=([]
++
(if includeBuildDeps then lib.concatLists
(map systemPackInstallBuildClosure systemPacks)
else [])
);
}
++ lib.uniqList {
inputList = lib.optionals includeBuildDeps
(lib.concatLists (map systemPackInstallBuildClosure systemPacks));
};
bootable = true;