update.nix: Allow passing overlays

Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
This commit is contained in:
Jan Tojnar 2020-07-07 21:28:34 +02:00
parent dc80d7bc4a
commit 5b3fe9f776
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -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;