Remove default values for Nix expression parameters
I'm not sure if this commit breaks everything in my monorepo. I think it will. Why am I doing this? Perhaps it's a bad idea. I don't fully understand how readTree works. My ignorance is costing me hours of time spent debugging. In an effort to better understand readTree, I'm removing the default values for my Nix expression parameters, which I believe have preventing errors from surfacing.
This commit is contained in:
parent
fd720fbe4d
commit
9e0fdd3973
28 changed files with 36 additions and 97 deletions
15
default.nix
15
default.nix
|
|
@ -9,11 +9,14 @@ let
|
|||
fix = f: let x = f x; in x;
|
||||
|
||||
# Global configuration that all packages are called with.
|
||||
config = pkgs: {
|
||||
inherit pkgs;
|
||||
config = self: {
|
||||
inherit self;
|
||||
pkgs = import <nixpkgs> {};
|
||||
depot = import <depot> {};
|
||||
briefcase = import <briefcase> {};
|
||||
};
|
||||
|
||||
readTree' = import ~/depot/nix/readTree {};
|
||||
readTree' = import <depot/nix/readTree> {};
|
||||
|
||||
# TODO: Find a better way to expose entire monorepo without introducing
|
||||
# "infinite recursion".
|
||||
|
|
@ -27,12 +30,6 @@ let
|
|||
};
|
||||
in fix(self: {
|
||||
config = config self;
|
||||
|
||||
# Expose readTree for downstream repo consumers.
|
||||
readTree = {
|
||||
__functor = x: (readTree' x.config);
|
||||
config = self.config;
|
||||
};
|
||||
}
|
||||
|
||||
# Add local packages as structured by readTree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue