[Nix-dev] non-constant path expressions

Merijn de Jonge merijn.de.jonge at philips.com
Tue Feb 7 13:33:53 CET 2006


Hi,


I would like to make more "generic" nix expressions in for packagesfor 
which many versions exist, e.g., aterm.

I would like to make the version an argument for the nix expression in 
aterm/default.nix:

   {stdenv, fetchurl, version ? 1.3.4}:
    (import ./aterm- ++ version ++ .nix) {
   inherit stdenv fetchurl
}


and then create a separate nix expression aterm-version.nix for each 
existing aterm version.

Is something like this already possible? If not, what do you think about 
this as a new feature?


Thanks,
Merijn



Merijn de Jonge                           Tel (+31-40 27) 45 189   Fax 
(+31-4027) 44 639
Building WDC-2, Philips NatLab, Prof. Holstlaan 4, 5656 AA Eindhoven, The 
Netherlands 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20060207/89f22be4/attachment.html 


More information about the nix-dev mailing list