Add additional shortcuts frequently used in NixOS.

svn path=/nixpkgs/trunk/; revision=23733
This commit is contained in:
Nicolas Pierron 2010-09-10 18:03:16 +00:00
parent 13f346058c
commit 7f8037cfd7

View File

@ -309,7 +309,10 @@ rec {
# Sugar to override the default value of the option by making a new
# default value based on the configuration.
mkDefaultValue = content: mkOverride 1000 content;
mkDefaultValue = mkOverride 1000;
mkDefault = mkOverride 1000;
mkForce = mkOverride 50;
mkStrict = mkOverride 0;
# Make the template traversal in function of the property traversal. If
# the template define a non-empty attribute set, then the property is