make-initrd: allow specifying name

Also moves the argument defaults out of all-packages.nix and into
make-initrd itself.
This commit is contained in:
Linus Heckemann
2019-04-13 23:20:58 +02:00
parent 8a0b2714fb
commit 3b16f345b5
2 changed files with 6 additions and 6 deletions
+5 -2
View File
@@ -12,11 +12,14 @@
# `contents = {object = ...; symlink = /init;}' is a typical
# argument.
{ stdenv, perl, cpio, contents, compressor, prepend, ubootTools
{ stdenv, perl, cpio, contents, ubootTools
, name ? "initrd"
, compressor ? "gzip -9n"
, prepend ? []
}:
stdenv.mkDerivation rec {
name = "initrd";
inherit name;
builder = ./make-initrd.sh;
makeUInitrd = stdenv.hostPlatform.platform.kernelTarget == "uImage";