summary refs log tree commit diff
path: root/maintainers/scripts
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-07-07 21:28:34 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-07-07 21:29:32 +0200
commit5b3fe9f776f32d7ff108d134d0e382935b3ea383 (patch)
tree42f8199e27b518cb2d306156681f0e6ebee5b08d /maintainers/scripts
parentdc80d7bc4a244120b3d766746c41c0d9c5f81dfa (diff)
downloadnixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar.gz
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar.bz2
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar.lz
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar.xz
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.tar.zst
nixpkgs-5b3fe9f776f32d7ff108d134d0e382935b3ea383.zip
update.nix: Allow passing overlays
Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
Diffstat (limited to 'maintainers/scripts')
-rwxr-xr-xmaintainers/scripts/update.nix8
1 files changed, 7 insertions, 1 deletions
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;