mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Revert "makeInitrd, makeModulesClosure: reduce repetition"
This reverts commit b5ee55f81f
.
The reason is that the args attribute in this case doesn't contain the
optional attributes which are specified, see here for example:
$ nix-instantiate --eval -E '(args@{ bar ? 111, ... }: args) {}'
{ }
$
This essentially breaks all VM tests, because stage-1 is passing all
arguments but pkgs/build-support/vm/default.nix does not.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
4c827cb601
commit
cb5e5a5b9d
@ -424,13 +424,17 @@ let
|
||||
|
||||
makeAutostartItem = callPackage ../build-support/make-startupitem { };
|
||||
|
||||
makeInitrd = { contents, compressor ? "gzip -9n", prepend ? [ ] }@args:
|
||||
callPackage ../build-support/kernel/make-initrd.nix args;
|
||||
makeInitrd = { contents, compressor ? "gzip -9n", prepend ? [ ] }:
|
||||
callPackage ../build-support/kernel/make-initrd.nix {
|
||||
inherit contents compressor prepend;
|
||||
};
|
||||
|
||||
makeWrapper = makeSetupHook { } ../build-support/setup-hooks/make-wrapper.sh;
|
||||
|
||||
makeModulesClosure = { kernel, rootModules, allowMissing ? false }@args:
|
||||
callPackage ../build-support/kernel/modules-closure.nix args;
|
||||
makeModulesClosure = { kernel, rootModules, allowMissing ? false }:
|
||||
callPackage ../build-support/kernel/modules-closure.nix {
|
||||
inherit kernel rootModules allowMissing;
|
||||
};
|
||||
|
||||
pathsFromGraph = ../build-support/kernel/paths-from-graph.pl;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user