diff options
author | Alexander Kjeldaas <ak@formalprivacy.com> | 2013-08-16 02:42:11 +0200 |
---|---|---|
committer | Alexander Kjeldaas <ak@formalprivacy.com> | 2014-04-05 08:41:06 +0200 |
commit | f67015cae49400eba539b9ec8b9920643581c77c (patch) | |
tree | ffa1848edddba80941d5248f2c865a8a01e76b69 /pkgs/build-support/kernel/make-initrd.nix | |
parent | c69eb7c2c1d996ae07725ae9763a7484c2afb449 (diff) |
Make initrd and the kernel builds repeatable.
Diffstat (limited to 'pkgs/build-support/kernel/make-initrd.nix')
-rw-r--r-- | pkgs/build-support/kernel/make-initrd.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.nix b/pkgs/build-support/kernel/make-initrd.nix index 4ddf0706e03e1..0582ca5530122 100644 --- a/pkgs/build-support/kernel/make-initrd.nix +++ b/pkgs/build-support/kernel/make-initrd.nix @@ -12,10 +12,10 @@ # `contents = {object = ...; symlink = /init;}' is a typical # argument. -{stdenv, perl, cpio, contents, ubootChooser, compressor}: +{stdenv, perl, perlArchiveCpio, cpio, contents, ubootChooser, compressor}: let - inputsFun = ubootName : [perl cpio] + inputsFun = ubootName : [perl cpio perlArchiveCpio ] ++ stdenv.lib.optional (ubootName != null) [ (ubootChooser ubootName) ]; makeUInitrdFun = ubootName : (ubootName != null); in @@ -35,6 +35,7 @@ stdenv.mkDerivation { exportReferencesGraph = map (x: [("closure-" + baseNameOf x.symlink) x.object]) contents; pathsFromGraph = ./paths-from-graph.pl; + cpioClean = ./cpio-clean.pl; crossAttrs = { nativeBuildInputs = inputsFun stdenv.cross.platform.uboot; |