Add option ‘system.extraDependencies’ for including stuff in the system closure
Mostly useful for installer tests that don't have network access. This generalizes virtualisation.pathsInNixDB and isoImage.storeContents.
This commit is contained in:
parent
6bf1853387
commit
7318ff0e38
@ -81,6 +81,8 @@ let
|
|||||||
substituteAll ${./switch-to-configuration.pl} $out/bin/switch-to-configuration
|
substituteAll ${./switch-to-configuration.pl} $out/bin/switch-to-configuration
|
||||||
chmod +x $out/bin/switch-to-configuration
|
chmod +x $out/bin/switch-to-configuration
|
||||||
|
|
||||||
|
echo -n "${toString config.system.extraDependencies}" > $out/extra-dependencies
|
||||||
|
|
||||||
${config.system.extraSystemBuilderCmds}
|
${config.system.extraSystemBuilderCmds}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -188,6 +190,16 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.extraDependencies = mkOption {
|
||||||
|
type = types.listOf types.package;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
A list of packages that should be included in the system
|
||||||
|
closure but not otherwise made available to users. This is
|
||||||
|
primarily used by the installation tests.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
system.replaceRuntimeDependencies = mkOption {
|
system.replaceRuntimeDependencies = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = lib.literalExample "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { ... }; }) ]";
|
example = lib.literalExample "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { ... }; }) ]";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user