mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
lib/types: Fix type description of bool enum values
Previously bool values would show as <bool>
This commit is contained in:
parent
1063be86e9
commit
de71ca2ebc
@ -499,6 +499,7 @@ rec {
|
||||
show = v:
|
||||
if builtins.isString v then ''"${v}"''
|
||||
else if builtins.isInt v then builtins.toString v
|
||||
else if builtins.isBool v then if v then "true" else "false"
|
||||
else ''<${builtins.typeOf v}>'';
|
||||
in
|
||||
mkOptionType rec {
|
||||
|
Loading…
Reference in New Issue
Block a user