mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
nixos/testing-python.nix: Help users who need specialArgs
This commit is contained in:
parent
3930bcb3c3
commit
d9283c04d5
1 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
args@
|
||||||
{ system
|
{ system
|
||||||
, pkgs ? import ../.. { inherit system config; }
|
, pkgs ? import ../.. { inherit system config; }
|
||||||
# Use a minimal kernel?
|
# Use a minimal kernel?
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
# Ignored
|
# Ignored
|
||||||
, config ? { }
|
, config ? { }
|
||||||
# !!! See comment about args in lib/modules.nix
|
# !!! See comment about args in lib/modules.nix
|
||||||
, specialArgs ? { }
|
, specialArgs ? throw "legacy - do not use, see error below"
|
||||||
# Modules to add to each VM
|
# Modules to add to each VM
|
||||||
, extraConfigurations ? [ ]
|
, extraConfigurations ? [ ]
|
||||||
}:
|
}:
|
||||||
|
@ -13,6 +14,13 @@ let
|
||||||
nixos-lib = import ./default.nix { inherit (pkgs) lib; };
|
nixos-lib = import ./default.nix { inherit (pkgs) lib; };
|
||||||
in
|
in
|
||||||
|
|
||||||
|
pkgs.lib.throwIf (args?specialArgs) ''
|
||||||
|
testing-python.nix: `specialArgs` is not supported anymore. If you're looking
|
||||||
|
for the public interface to the NixOS test framework, use `runTest`, and
|
||||||
|
`node.specialArgs`.
|
||||||
|
See https://nixos.org/manual/nixos/unstable/index.html#sec-calling-nixos-tests
|
||||||
|
and https://nixos.org/manual/nixos/unstable/index.html#test-opt-node.specialArgs
|
||||||
|
''
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue