Don't worry if there are no patches
commit5a1201915a5b016b628bc7265bc157774d80fed2
authorLuke Clifton <lukec@themk.net>
dateFri 10 May 2019, 13:44 (7 years ago)
parentb0a05cd
default.nix+2−1
@@ -81,10 +81,11 @@ let
8181 pkg-def = stackage.${stack-pkgs.resolver};
8282 # The compiler referenced in the stack config
8383 compiler = (stack-pkgs.extras hackage).compiler or (pkg-def hackage).compiler;
84+ patchesModule = ghcHackagePatches.${compiler.nix-name} or {};
8485 in self.mkPkgSet {
8586 inherit pkg-def;
8687 pkg-def-extras = [ stack-pkgs.extras ] ++ pkg-def-extras;
87− modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
88+ modules = [ patchesModule ] ++ modules;
8889 };
8990
9091 # Create a Haskell package set based on a Cabal configuration.