[Nix-dev] Re: [Nix-commits] SVN commit: nix - r29021 - nixos/trunk/modules/misc
Nicolas Pierron
nicolas.b.pierron at gmail.com
Mon Sep 5 19:15:36 CEST 2011
Hi,
On Mon, Sep 5, 2011 at 14:27, Ludovic Courtès <ludo at gnu.org> wrote:
> Hi,
>
> Nicolas Pierron <nicolas.b.pierron at gmail.com> skribis:
>
>> What I can suggest is a paradigm shift for ~/.nixpkgs/config.nix which
>> would use a module like syntax, where the whole file is a function,
>
> It’s been the case for a long time already. Or did you mean something
> different?
I mean:
{pkgs, ...}:
{
git = pkgs.git {
opt_svn = true;
opt_ui = true;
};
mercurial = pkgs.mercurial {
python = pythonFull;
};
# This is almost the idea behind Gentoo attributes
opt_svn = false; # global setting.
mysql = null; # don't use mysql
}
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list