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

Michael Raskin 7c6f434c at mail.ru
Fri Sep 3 10:44:22 CEST 2010


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

On 09/03/2010 12:29 PM, Eelco Dolstra wrote:
>> 	Part one: gtkLibs220 has no __overrides. So gtk depends on default glib
>> unless you basically copy-paste everything. Proposed solution
>> (instantiation checked, gives the same unless you use overrides):
> 
> As far as I can tell this is not necessary.  When I introduced callPackage, I
> actually took care that overriding packages in sets like gtkLibs is still
> possible :-)
> 
> For instance, you can stick this in ~/.nixpkgs/config.nix:
> 
>   packageOverrides = pkgs: rec {
>     gtkLibs220 = pkgs.gtkLibs220 // {
>       glib = pkgs.gtkLibs218.glib;
>     };
>   };

How you _add a package_ that currently works better (only) with
non-default glib? What you propose is way too global - you have to
reimport nixpkgs even to install software with different glib's into
current-system, let alone add a package into NixPkgs.

I did try my best to override things in all-packages.nix without global
changes - it turned out to be impossible. I have an understanding why
what you say fails from inside, but it is long and vague, of course.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMgLVlAAoJEE6tnN0aWvw3aOIIAKR7WJg5tlwuYehwF0Nw/9Ct
bQ4SGo5WeMlmXxsV5ZiyS1HILYfwVDvfY92Q63todFa5LlIon8q6CPsUYhuWNXQV
gRLyOkaZE3aNAbXICoA3koyCpKPWAjrLpmfm++uAXIY74U4ZMHL8aO77/o4m+hgi
M7S7JaoSJcdm6pN6dlDZjWvfhEXQWghz6pdDIRSwPkDV+G2ZkaIWcJPtYhh4VQhD
k2QaiDLovdjjzZt16IKmvbZ1KQjiDL1yu9jQDawPAs+5n5/Zo8jGVcWOeZ1CE0I8
OP+gI/LT+c75XaM6qfgPBhUlb9k345UbZDq+GG3NvAUJyiVgHaxqQlc0UMxEOT0=
=ve/6
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list