[Nix-dev] [PATCH] Add Nix expressions for kadu

Marc Weber marco-oweber at gmx.de
Wed Sep 29 11:19:30 CEST 2010


Excerpts from Piotr Pietraszkiewicz's message of Wed Sep 29 01:10:28 +0200 2010:
>   Thanks. Marc Weber commented me about this over-verbosity once (in 
> crack-attack) post and here i make the same error again.. duh

I don't think ludo was talking about any description in this case.
I feel your descriptions are short enough in this case. If it fits into
a 80 char line why not

I guess ludo was talking about this:

> >> +  kadu = callPackage ../applications/networking/instant-messengers/kadu {
> >> +    stdenv = stdenv2;
> >> +    qt = qt4;
> >> +    inherit fetchurl cmake libgadu bash libsndfile wget alsaLib;
> >> +    inherit (xlibs) libXScrnSaver libX11;
> >> +    inherit (kde45) qca2;
> >> +  };

callPackage will magically read the arguments of the imported function.
Thus it will know that it requires "fetchurl, cmake, libgadu, bash,
libsndfile ..) and pass them for you.

As rule of thumb: everything which is defined in all-packages.nix will
be passed automatically. If in doubt try removing and reevaluating. If
it fails add again:


> >> +    inherit (xlibs) libXScrnSaver libX11;
Not sure about libXScrnSaver ? Try it.

So I'd try this:

> >> +  kadu = callPackage ../applications/networking/instant-messengers/kadu {
> >> +    stdenv = stdenv2;
> >> +    qt = qt4;
> >> +    inherit (kde45) qca2;
> >> +  };

ludo, if you were refering to something else please reply again.

Marc Weber



More information about the nix-dev mailing list