Skip to content

Commit 79105e5

Browse files
committed
feat: add haumea compat wrapper for load function
1 parent 56472bd commit 79105e5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

flake.nix

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,24 @@
2727
inherit inputs;
2828
inherit (inputs) nixpkgs;
2929
};
30-
in inputs.haumea.lib // {
31-
inherit blockTypes collect;
32-
inherit (inputs.paisano) grow growOn pick harvest winnow;
33-
};
30+
# compat wrapper for humea.lib.load
31+
inherit (inputs) haumea;
32+
load = {
33+
inputs,
34+
cell,
35+
...
36+
} @ args:
37+
with builtins;
38+
haumea.lib.load (removeAttrs args ["cell" "inputs"]
39+
// {
40+
# `self` in paisano refers to `inputs.self.sourceInfo` 😕
41+
# but is disallowed in haumea
42+
inputs = removeAttrs (inputs // {inherit cell;}) ["self"];
43+
});
44+
in
45+
haumea.lib
46+
// {
47+
inherit blockTypes collect load;
48+
inherit (inputs.paisano) grow growOn pick harvest winnow;
49+
};
3450
}

0 commit comments

Comments
 (0)