Skip to content

Commit

Permalink
feat: used haumea's scoped importers and freeze hive.load semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Apr 23, 2023
1 parent 859b199 commit 669cdfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
disko.url = "github:divnix/blank";
nixos-generators.url = "github:divnix/blank";
home-manager.url = "github:divnix/blank";
haumea.url = "github:nix-community/haumea?ref=v0.2.0";
haumea.url = "github:nix-community/haumea?ref=v0.2.1";
haumea.inputs.nixpkgs.follows = "nixpkgs";
};

Expand All @@ -37,9 +37,14 @@
with builtins;
haumea.lib.load (removeAttrs args ["cell" "inputs"]
// {
loader = haumea.lib.loaders.scoped;
transformer = with haumea.lib.transformers; [
liftDefault
(hoistLists "_imports" "imports")
];
# `self` in paisano refers to `inputs.self.sourceInfo` 😕
# but is disallowed in haumea
inputs = removeAttrs (inputs // {inherit cell;}) ["self"];
inputs = removeAttrs (inputs // {inherit inputs cell;}) ["self"];
});
in
haumea.lib
Expand Down

0 comments on commit 669cdfc

Please sign in to comment.