mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
f677cbabe9
It's not used, doesn't build, and seems like the only reason to have `manualConfig` take `stdenv` as an argument.
27 lines
823 B
Nix
27 lines
823 B
Nix
{ config, options, lib, ... }:
|
|
let
|
|
inherit (lib) mkIf mkOption types;
|
|
in
|
|
{
|
|
# This needs options.warnings and options.assertions, which we don't have (yet?).
|
|
# imports = [
|
|
# (lib.mkRenamedOptionModule [ "machine" ] [ "nodes" "machine" ])
|
|
# (lib.mkRemovedOptionModule [ "minimal" ] "The minimal kernel module was removed as it was broken and not used any more in nixpkgs.")
|
|
# ];
|
|
|
|
options = {
|
|
machine = mkOption {
|
|
internal = true;
|
|
type = types.raw;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
nodes = mkIf options.machine.isDefined (
|
|
lib.warn
|
|
"In test `${config.name}': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-python.nix / testing-python.nix / makeTest) is deprecated. Please set the equivalent `nodes.machine'."
|
|
{ inherit (config) machine; }
|
|
);
|
|
};
|
|
}
|