[Nix-dev] Bundling nix-expressions with source code

Vladimír Čunát vcunat at gmail.com
Sat Jan 26 10:15:07 CET 2013


On 01/25/2013 09:32 AM, Rickard Nilsson wrote:
> Den 2013-01-24 23:01:03 skrev Vladimír Čunát <vcunat at gmail.com>:
>> I see nix is getting quite popular :-)
>> The maintainer is of course welcome to maintain also the nix expression
>> *within* nixpkgs, who else is a better candidate...
>
> Yes, absolutely, and that is completely OK. But you might want to keep
> an in-development default.nix in the upstream repo, too. It's actually
> very nice to use Nix during development, for handling dependencies,
> installing throw-away stuff in your profile, etc.
>
> Oh well, this is just me thinking out loud.

I see the motivation now. Well, you can have a project-local nix file 
that imports its dependencies from the global expression - and you build 
it in the directory via "nix-build ./" (you probably don't want these 
things in your profile, maybe rather in a seprarate project-profile).

This way seems cleaner to me, because intuitively the project depends on 
nixpkgs, not the other way around. (You could also have e.g. a topgit 
branch for the project on top of nixpkgs, but it seems inferior to the 
solution above.)


Vlada


-------------- 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/20130126/83ef7ec2/attachment.bin 


More information about the nix-dev mailing list