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:
parent
6ae799e8c8
commit
0e5da6c34c
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,12 @@ in fix(self: {
|
||||||
|
|
||||||
# Elevate 'lib' from nixpkgs
|
# Elevate 'lib' from nixpkgs
|
||||||
lib = import (self.third_party.nixpkgsSrc + "/lib");
|
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
|
# Add local packages as structured by readTree
|
||||||
|
|
Loading…
Reference in a new issue