forked from mirrors/nixpkgs
* Get rid of the template argument in mkOverride.
svn path=/nixpkgs/trunk/; revision=23709
This commit is contained in:
parent
fb8e2ed6be
commit
df1d0752eb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue