feat: Expose readTree for downstream consumers

Exposes readTree from the package set but with a twist: It's exposed
as a functor that references the `.config` field from itself to get at
the configuration to be passed to packages.

This makes it possible for downstream users to make use of `readTree`
but with their own configuration.
This commit is contained in:
Vincent Ambo 2019-12-16 13:32:10 +00:00
parent 6ae799e8c8
commit 0e5da6c34c

View file

@ -38,6 +38,12 @@ in fix(self: {
# Elevate 'lib' from nixpkgs
lib = import (self.third_party.nixpkgsSrc + "/lib");
# Expose readTree for downstream repo consumers.
readTree = {
__functor = x: (readTree' x.config);
config = self.config;
};
}
# Add local packages as structured by readTree