diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2022-03-16 22:58:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 22:58:45 +0100 |
commit | 0395086d0c2bb189f03985486a23cfedbdf8c940 (patch) | |
tree | 621948aafdf70a1adc44b344ab93650bef22cc50 /lib | |
parent | 2f7633c22ee80c72a206421abcd5fc1a208bf946 (diff) | |
parent | 0c766a100e416611807a184ee35a0edbd11b15a4 (diff) | |
download | nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar.gz nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar.bz2 nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar.lz nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar.xz nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.tar.zst nixpkgs-0395086d0c2bb189f03985486a23cfedbdf8c940.zip |
Merge pull request #162271 from Infinisil/warn-no-type
Throw an error for options without a type
Diffstat (limited to 'lib')
-rw-r--r-- | lib/options.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index 627aac24d2f..9efc1249e58 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -231,7 +231,7 @@ rec { then true else opt.visible or true; readOnly = opt.readOnly or false; - type = opt.type.description or null; + type = opt.type.description or "unspecified"; } // optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; } // optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; } |