From 5b3fe9f776f32d7ff108d134d0e382935b3ea383 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 7 Jul 2020 21:28:34 +0200 Subject: update.nix: Allow passing overlays Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly. --- maintainers/scripts/update.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'maintainers/scripts') diff --git a/maintainers/scripts/update.nix b/maintainers/scripts/update.nix index 66ea18ddf62..9568c6cbbcc 100755 --- a/maintainers/scripts/update.nix +++ b/maintainers/scripts/update.nix @@ -9,7 +9,13 @@ # TODO: add assert statements let - pkgs = import ./../../default.nix (if include-overlays then { } else { overlays = []; }); + pkgs = import ./../../default.nix ( + if include-overlays == false then + { overlays = []; } + else if include-overlays == true then + { } # Let Nixpkgs include overlays impurely. + else { overlays = include-overlays; } + ); inherit (pkgs) lib; -- cgit 1.4.1