What do you think about introducing a lib.toBool = value : ! (value == false || value == null || value == "")
function?
I'm not sure about the last value == ""
It could be used in
mkDerivationOrBootScript = {
enableFeature = lib.toBool config.[..]
indstead of
enableFeature = if config.[..] then true else false
}
Marc
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev
