Skip to content

Commit

Permalink
ref: remove overlay xref to pkgs
Browse files Browse the repository at this point in the history
since packages are exposed through output.packages by their own,
a second export through overlays.pkgs would be smudging the public api
of this repository.
  • Loading branch information
David Arnold committed Dec 30, 2020
1 parent a0b9f9f commit 94f334e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ in
genPackages = { overlay, overlays, pkgs }:
let
packages = overlay pkgs pkgs;
overlays' = lib.filterAttrs (n: v: n != "pkgs") overlays;
overlayPkgs =
genAttrs
(attrNames overlays')
(name: (overlays'."${name}" pkgs pkgs)."${name}");
(attrNames overlays)
(name: (overlays."${name}" pkgs pkgs)."${name}");
in
recursiveUpdate packages overlayPkgs;

Expand Down
1 change: 0 additions & 1 deletion overlays/pkgs.nix

This file was deleted.

0 comments on commit 94f334e

Please sign in to comment.