mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
e8d61a25fc
Doesn't seem to have been a problem actually, but now it won't regress.
13 lines
374 B
Nix
13 lines
374 B
Nix
{ lib, ... }:
|
|
let
|
|
deathtrapArgs = lib.mapAttrs
|
|
(k: _: throw "The module system is too strict, accessing an unused option's ${k} mkOption-attribute.")
|
|
(lib.functionArgs lib.mkOption);
|
|
in
|
|
{
|
|
options.value = lib.mkOption {
|
|
type = lib.types.attrsOf lib.types.str;
|
|
default = {};
|
|
};
|
|
options.testing-laziness-so-don't-read-me = lib.mkOption deathtrapArgs;
|
|
}
|