From ee55c0048bf68bd11a1af215f08006aaa3971323 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Jan 2007 09:20:34 +0000 Subject: [PATCH] * Fix filterSource calls. svn path=/nixos/trunk/; revision=7669 --- configuration/rescue-cd.nix | 8 ++++++-- system/upstart.nix | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configuration/rescue-cd.nix b/configuration/rescue-cd.nix index b9b0ffaa0286..08dd24791497 100644 --- a/configuration/rescue-cd.nix +++ b/configuration/rescue-cd.nix @@ -87,8 +87,12 @@ rec { # Put the current directory in a tarball (making sure to filter # out crap like the .svn directories). - nixosTarball = makeTarball "nixos.tar.bz2" (builtins.filterSource - (name: let base = baseNameOf (toString name); in base != ".svn" && base != "result") ./..); + nixosTarball = + let filter = name: type: + let base = baseNameOf (toString name); + in base != ".svn" && base != "result"; + in + makeTarball "nixos.tar.bz2" (builtins.filterSource filter ./..); # Get a recent copy of Nixpkgs. diff --git a/system/upstart.nix b/system/upstart.nix index 86ca22ca7d98..6ceb2c921631 100644 --- a/system/upstart.nix +++ b/system/upstart.nix @@ -23,7 +23,8 @@ import ../upstart-jobs/gather.nix { # The udev daemon creates devices nodes and runs programs when # hardware events occur. (import ../upstart-jobs/udev.nix { - inherit (pkgs) writeText cleanSource udev procps; + inherit (pkgs) writeText udev procps; + inherit (pkgs.lib) cleanSource; }) # Makes LVM logical volumes available.