[Nix-dev] how to solve a package depending on another package ?

Roelof Wobben rwobben at hotmail.com
Tue Dec 3 13:40:58 CET 2013



Date: Tue, 3 Dec 2013 10:28:15 +0100
From: vcunat at gmail.com
To: nix-dev at lists.science.uu.nl
Subject: Re: [Nix-dev] how to solve a package depending on another package ?

On 12/03/2013 10:25 AM, Vladimír Čunát wrote:
> No, well, I put cinnamon into an attrset of its own. I think it's best
> to solve by the following diff or similar:
 
Ah, explanation: this makes the callPackage function also consider the 
*inside* of cinnamon attrset when supplying parameters.
 
There are other ways, but this seems to have proven good e.g. for gnome.
 
 
Vlada

Thanks,

Can I do something like this then :

cinnamon = recurseIntoAttrs rec{
    callPackage=pkgs.newScope pkgs.cinnamon;
    inherit (gnome) gnome-common ; 
    cinnamon-desktop = callPackage ../desktops/cinnamon/cinnamon-desktop.nix { } ;
    cinnamon-settings-daemon = callPackage ../desktops/cinnamon/cinnamon-settings-daemon.nix{ };
 };

Because almost every package except cjs depends on gnome-common 

Roelof


 
 

_______________________________________________
nix-dev mailing list
nix-dev at lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131203/d8c707d9/attachment.html 


More information about the nix-dev mailing list