From 3d8df9802dbc44c5833f2dc073a4b1cc02d0364c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Mar 2009 18:10:38 +0000 Subject: [PATCH] * exportBuildReferencesGraph -> exportReferencesGraph. svn path=/nixos/trunk/; revision=14593 --- helpers/make-iso9660-image.nix | 10 +++----- installer/cd-dvd/rescue-cd-configurable.nix | 27 +++++++++------------ 2 files changed, 14 insertions(+), 23 deletions(-) diff --git a/helpers/make-iso9660-image.nix b/helpers/make-iso9660-image.nix index 0262bc653bb9..aef5408107f8 100644 --- a/helpers/make-iso9660-image.nix +++ b/helpers/make-iso9660-image.nix @@ -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"; } diff --git a/installer/cd-dvd/rescue-cd-configurable.nix b/installer/cd-dvd/rescue-cd-configurable.nix index f021c19b63bc..53524ca36c8f 100644 --- a/installer/cd-dvd/rescue-cd-configurable.nix +++ b/installer/cd-dvd/rescue-cd-configurable.nix @@ -461,22 +461,17 @@ rec { }; # Closures to be copied to the Nix store on the CD. - storeContents = lib.uniqListExt { - inputList= lib.concatLists - (map systemPackInstallClosures systemPacks); - getter = x : x.object.drvPath; - compare = lib.eqStrings; - }; - - buildStoreContents = lib.uniqList - { - inputList=([] - ++ - (if includeBuildDeps then lib.concatLists - (map systemPackInstallBuildClosure systemPacks) - else []) - ); - }; + storeContents = + lib.uniqListExt { + inputList = lib.concatLists + (map systemPackInstallClosures systemPacks); + getter = x: x.object.drvPath; + compare = lib.eqStrings; + } + ++ lib.uniqList { + inputList = lib.optionals includeBuildDeps + (lib.concatLists (map systemPackInstallBuildClosure systemPacks)); + }; bootable = true; bootImage = "boot/grub/stage2_eltorito";