make inclusion of HIE overlay conditional as well

This commit is contained in:
Trolli Schmittlauch 2020-09-21 22:14:33 +02:00
parent b48b7a7bba
commit d8b2186016

View file

@ -14,13 +14,13 @@ let
name = "nixpkgs-pinned"; name = "nixpkgs-pinned";
url = https://github.com/NixOS/nixpkgs/; url = https://github.com/NixOS/nixpkgs/;
ref = "refs/heads/release-20.03"; ref = "refs/heads/release-20.03";
rev = "de3780b937d2984f9b5e20d191f23be4f857b3aa"; rev = "faf5bdea5d9f0f9de26deaa7e864cdcd3b15b4e8";
}) { }) {
# Pass no config for purity # Pass no config for purity
config = {}; config = {};
overlays = [ overlays = if withHIE then [
(import all-hies {}).overlay (import all-hies {}).overlay
]; ] else [];
}; };
hp = pkgs.haskell.packages."${compiler}"; hp = pkgs.haskell.packages."${compiler}";
src = pkgs.nix-gitignore.gitignoreSource [] ./.; src = pkgs.nix-gitignore.gitignoreSource [] ./.;