[Nix-dev] RE: Nix expression writing conventions

Yury G. Kudryashov urkud+nix at ya.ru
Fri Jul 30 19:45:54 CEST 2010


Sander van der Burg - EWI wrote:

>> Yes, this is probably best, but we'll have to teach nix-env about the
>> version
>> attribute.  A big advantage is that we get rid of the ambiguity between
>> the name part and the version part in names such "foo-cvs".
> 
> Ok +1,
> 
> I'm in favour for this solution, but to implement this you have to make
> some major changes, right? Maybe this is a nice little hobby project in
> case you're bored, hehe.

What about this:

mkDerivation = a : if a ? version then mkDerivation (removeAttrs a "version" 
// { name = "${a.name}-${a.version}"; }) else old_expr





More information about the nix-dev mailing list