git.iko.soy/typeable/nixpkgs
on master help sign in
update.nix: Allow passing overlays

Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.

commit5b3fe9f776f32d7ff108d134d0e382935b3ea383 authorJan Tojnar <jtojnar@gmail.com> dateTue 7 Jul 2020, 21:28 (6 years ago) parentdc80d7b
1 file changed+7−1
maintainers/scripts/update.nix+7−1
maintainers/scripts/update.nix+7−1
@@ -9,7 +9,13 @@
99# TODO: add assert statements
1010
1111let
12− pkgs = import ./../../default.nix (if include-overlays then { } else { overlays = []; });
12+ pkgs = import ./../../default.nix (
13+ if include-overlays == false then
14+ { overlays = []; }
15+ else if include-overlays == true then
16+ { } # Let Nixpkgs include overlays impurely.
17+ else { overlays = include-overlays; }
18+ );
1319
1420 inherit (pkgs) lib;
1521