Skip to content

Commit

Permalink
lib: fix namespaced lib overlay by passing nixos to ./pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold committed Mar 1, 2021
1 parent 3e5553a commit d82ff52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
inherit (pkgs) lib;
});

overlay = import ./pkgs { inherit name; };
overlay = import ./pkgs { inherit nixos name; };

lib = import ./lib { inherit nixos; };

templates.flk.path = ./.;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ name }: final: prev: {
{ name, nixos }: final: prev: {
"${name}" = {
lib = import ../lib { pkgs = prev; };
lib = import ../lib { inherit nixos; };
# put your further packages here
};
}

0 comments on commit d82ff52

Please sign in to comment.