makeInitrd, makeModulesClosure: reduce repetition

After #9869.
This commit is contained in:
Vladimír Čunát 2015-09-15 08:51:08 +02:00
parent 46ae0a0c98
commit b5ee55f81f

View file

@ -424,17 +424,13 @@ let
makeAutostartItem = callPackage ../build-support/make-startupitem { };
makeInitrd = { contents, compressor ? "gzip -9n", prepend ? [ ] }:
callPackage ../build-support/kernel/make-initrd.nix {
inherit contents compressor prepend;
};
makeInitrd = { contents, compressor ? "gzip -9n", prepend ? [ ] }@args:
callPackage ../build-support/kernel/make-initrd.nix args;
makeWrapper = makeSetupHook { } ../build-support/setup-hooks/make-wrapper.sh;
makeModulesClosure = { kernel, rootModules, allowMissing ? false }:
callPackage ../build-support/kernel/modules-closure.nix {
inherit kernel rootModules allowMissing;
};
makeModulesClosure = { kernel, rootModules, allowMissing ? false }@args:
callPackage ../build-support/kernel/modules-closure.nix args;
pathsFromGraph = ../build-support/kernel/paths-from-graph.pl;