Closed
Description
I'd like to achieve two things here:
-
mkPackageOption
helper withdefaultText
#1950 - lazy evaluation of the default
The first point should be achieved by providing the helper with a "pkgs path" that can be used with getAttrByPath
and also concatStringsSep "."
to provide default
and defaultText
respectively.
I'm not sure about the second point. Maybe we'd need a different type that is lazier, although this may break things like mkIf
.
Or maybe we can do something like either package (functionTo package)
and provide a lazy function that returns the package as the default?