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:
parent
dc80d7bc4a
commit
5b3fe9f776
@ -9,7 +9,13 @@
|
|||||||
# TODO: add assert statements
|
# TODO: add assert statements
|
||||||
|
|
||||||
let
|
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;
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user