[Nix-dev] Re: [Nix-commits] SVN commit: nix - r23709 - nixpkgs/trunk/pkgs/lib
Nicolas Pierron
nicolas.b.pierron at gmail.com
Fri Sep 10 14:04:06 CEST 2010
I was waiting in order to avoid the synchronization with nixpkgs.
On Fri, Sep 10, 2010 at 11:31, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Author: eelco
> Date: Fri Sep 10 09:31:31 2010
> New Revision: 23709
> URL: https://svn.nixos.org/websvn/nix/?rev=23709&sc=1
>
> Log:
> * Get rid of the template argument in mkOverride.
>
> Modified:
> nixpkgs/trunk/pkgs/lib/properties.nix
>
> Modified: nixpkgs/trunk/pkgs/lib/properties.nix
> ==============================================================================
> --- nixpkgs/trunk/pkgs/lib/properties.nix Thu Sep 9 20:05:00 2010 (r23708)
> +++ nixpkgs/trunk/pkgs/lib/properties.nix Fri Sep 10 09:31:31 2010 (r23709)
> @@ -304,13 +304,12 @@
> 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
> _______________________________________________
> nix-commits mailing list
> nix-commits at cs.uu.nl
> http://mail.cs.uu.nl/mailman/listinfo/nix-commits
>
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list