give pkgs a reference to itself.

As discussed on nix-dev, this allows me to create a separate package
repository which can be used like all-packages.nix (callPackage),
without the need to run from a forked tree.
This commit is contained in:
Mathijs Kwik 2012-07-19 14:07:11 +02:00
parent 03d98589e2
commit 62f698dfd3

View file

@ -131,7 +131,7 @@ let
# `__overrides' is a magic attribute that causes the attributes in
# its value to be added to the surrounding `rec'. We'll remove this
# eventually.
inherit __overrides;
inherit __overrides pkgs;
# We use `callPackage' to be able to omit function arguments that