[Nix-dev] Re: [Want to commit this week] deepOverride replacement when callPackage is used
Michael Raskin
7c6f434c at mail.ru
Thu Sep 2 14:44:46 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/02/2010 04:09 PM, Yury G. Kudryashov wrote:
>> Part two: callPackage uses default pkgs (with overrides from
>> config.nix). When you override gtkLibs,
> Where (and how) do you override gtkLibs?
In a package inside Nixpkgs. That would be used like the following:
empathy =
let
pkgsFreshGlib = pkgsFun {
gtkLibs220 = (pkgs.gtkLibs220.override {
glib = pkgs.gtkLibs220.glib_2_25;
});
};
pkgsFreshGlibCP =
pkgs.lib.callPackageWith
(pkgsFreshGlib // pkgsFreshGlib.xorg // pkgsFreshGlib.gtkLibs220 //
pkgsFreshGlib.gst_all //
pkgsFreshGlib.gnome);
empathy = pkgsFreshGlibCP
../applications/networking/instant-messengers/empathy {};
in
empathy;
(there is some space for making that more compact - that is more
explicit/debuggable form than absolutely needed)
>> gnome subset gets old glib
>> whatever I do (and I guess overriding gtk would be even worse).
> Offtopic: what do you want to override in gtkLibs.glib?
I want to add Empathy package - it needs glib 2.25. So I want a package
inside NixPkgs that uses everything built with a fresher glib.
It is like back when fresh libsoup needed fresh glib.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJMf5w9AAoJEE6tnN0aWvw3jI0H/Ru3SW0lDTF+Qpb65MfTGa+u
bseR8YoU2/heksREnMXgg9mEl3uLWz3CiB0/gsJTmL31u2rkutrdEzQBGY5XZpwt
cm9rBD78JjIvU2lLm+KbWp3KVKwbN79UcoieCFW/ZO7EfJZait85RqgLB5auGg3a
AG3VMB0p4h2gU8gOWUldsUciLTleqhS/S6No+N5ItYObt9JMc3aVUwht5d8+9ERk
ocx2+4hT9HaT4dxzDohsyswyAqPVqqZ763OG80iUqmcQZn3/h0WEWN/euj9Qv+cr
gG8oqlU7V4CdAx/rcvuqqSPlxMLVdqna0r73OoCHFJQfHUjoNiUuMbI8g6tGOE8=
=x7tW
-----END PGP SIGNATURE-----
More information about the nix-dev
mailing list