Date: Tue, 3 Dec 2013 10:28:15 +0100
From: [email protected]
To: [email protected]
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
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev