Merge pull request #92628 from jtojnar/update-overlays

update.nix: Allow passing overlays
This commit is contained in:
Jan Tojnar 2020-07-18 06:50:50 +02:00 committed by GitHub
commit 43259950eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;