3
0
Fork 0
forked from mirrors/nixpkgs

* Get rid of the template argument in mkOverride.

svn path=/nixpkgs/trunk/; revision=23709
This commit is contained in:
Eelco Dolstra 2010-09-10 09:31:31 +00:00
parent fb8e2ed6be
commit df1d0752eb

View file

@ -304,13 +304,12 @@ rec {
inherit content;
};
# Currently an alias, but sooner or later the template argument should be
# removed.
mkOverride = mkOverrideTemplate;
# Like mkOverrideTemplate, but without the template argument.
mkOverride = priority: content: mkOverrideTemplate priority {} content;
# 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 = content: mkOverride 1000 content;
# Make the template traversal in function of the property traversal. If
# the template define a non-empty attribute set, then the property is