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

Vladimír Čunát vcunat at gmail.com
Tue Dec 3 10:25:41 CET 2013


On 12/03/2013 10:18 AM, Rok Garbas wrote:
>
> you have to reference to attribute name from all-packages.nix.
>
> i assume you did something along this lines in all-packages.nix::
>
>      cinnamon_desktop = callPa.... {};

No, well, I put cinnamon into an attrset of its own. I think it's best 
to solve by the following diff or similar:

diff --git a/pkgs/top-level/all-packages.nix 
b/pkgs/top-level/all-packages.nix
index 50b07d6..89c8244 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9569,7 +9569,9 @@ let

    ### DESKTOP ENVIRONMENTS

-  cinnamon = recurseIntoAttrs {
+  cinnamon = recurseIntoAttrs rec {
+    callPackage = pkgs.newScope pkgs.cinnamon;
+
      cjs = callPackage ../desktops/cinnamon/cjs.nix { };


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/20131203/96ccfc19/attachment.bin 


More information about the nix-dev mailing list