on iko/ghcjs-patch-master help sign in
Exclude pre/postCheck from `all` used by shellFor (#306)
be5ce45Hamish Mackenzie
modules/package.nix+8−1
@@ -316,5 +316,12 @@ in {
316 # this is relevant would be to switch from the bool type to
316 # this is relevant would be to switch from the bool type to
317 # something like an anyBool type, which would merge definitions by
317 # something like an anyBool type, which would merge definitions by
318 # returning true if any is true.
318 # returning true if any is true.
319+ config.components.all = lib.mkMerge (
320+ builtins.map (c:
321+ # Exclude attributes that are likely to have conflicting definitions
322+ # (a common use case for `all` is in `shellFor` and it only has an
323+ # install phase).
324+ builtins.removeAttrs c ["preCheck" "postCheck"]
319− config.components.all = lib.mkMerge (haskellLib.getAllComponents config);
325+ ) (haskellLib.getAllComponents config)
326+ );
320}
327}