[Nix-dev] [Want to commit this week] deepOverride replacement when callPackage is used

Michael Raskin 7c6f434c at mail.ru
Fri Sep 3 16:36:54 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/03/2010 02:46 PM, Eelco Dolstra wrote:
> Ah, now I see your problem - callPackage doesn't use the overriden packages.
> I've committed a fix (r23613) that does part two of your solution (move
> callPackage etc. inside pkgsFun) and adds a function `applyGlobalOverrides'.

Works nice, thanks

> For instance, to build Thunderbird 3 with an older Glib, you can say:
> 
>   thunderbird3 =
>     let
>       pkgs = applyGlobalOverrides (pkgsOrig:
>         { gtkLibs220 = pkgsOrig.gtkLibs220 //
>             { glib = pkgsOrig.gtkLibs218.glib; };
>         });
>     in
>       pkgs.callPackage .../thunderbird/3.x.nix {
>         inherit (pkgs.gnome) libIDL;
>       };
> 
> The first part of your solution is not necessary, I think.

Yes, I did overrides in slightly other way and it didn't work without
modifying gtkLibs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMgQgFAAoJEE6tnN0aWvw3w/wH/jtfXk6EGCLq3VGrthMfPFYI
uKw/GYf0EJ8wGLutxz01Hj2jV1ktl8mk1OjXw9SvGLCBdvzPCOXzLsOgpHJ6RpL3
/Ej+hlbGuP5eET8ONvwfIzuywmA2L2jcvwDtC8VptnSGL2URIhJykM/J9NzKFr0V
SkezGJqCMjXub9mDYe0uguQhhBS9BKJyYAZvlwLIYBqzU5FvUPN909ckuRkg1LYl
8OW+KR/l+7kCIWsAFRibF6saDmwfXFRuXEsP9+N7zqIb2CLjA5G0slX3RFms9yw7
i65ZcTFNgB4LEehTrXUSWNB8w9ykr6/B2FT4J+B7WuYzhA0CnDw3vc8nuzc3dCs=
=andT
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list