[Nix-dev] Developing with older packages

Vladimír Čunát vcunat at gmail.com
Mon Sep 8 21:11:16 CEST 2014


On 09/08/2014 08:12 PM, Richard Wallace wrote:
> One thing that surprised me about nix when I started using it is that
> there isn't a way to say, "I need package X with version Y".  Instead,
> you have to resort to having multiple definitions of the package with
> different package names for different versions.  This seems a bit hacky
> to me.

When you change version, you have to change the download hash, and often 
also some other things like dependencies or patches. As many things may 
be different, having a special attribute name is a flexible convention.

In nixpkgs we do not maintain old versions unless there is a good reason 
to do so. For those cases, the language offers many ways of sharing code 
among multiple versions, although some of those techniques were disputed 
a lot and disapproved.


Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140908/163da12c/attachment.bin 


More information about the nix-dev mailing list