From 5ab7854fbdfc04a04d084de6828559e019a73329 Mon Sep 17 00:00:00 2001 From: Florian Beeres Date: Fri, 8 Jan 2021 12:14:33 +0100 Subject: [PATCH] dhall-json: skip tests to skip tasty 1.4 dependency dhall-json has a dependency on tasty-silver and this in turn only compiles if we supply a newer version of tasty. We can get around this issue until stackage has caught up to tasty 1.4 by skipping tests --- pkgs/development/haskell-modules/configuration-common.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index ce48c357803..399b9cb6d51 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -937,7 +937,10 @@ self: super: { # Generate cli completions for dhall. dhall = generateOptparseApplicativeCompletion "dhall" super.dhall; - dhall-json = generateOptparseApplicativeCompletions ["dhall-to-json" "dhall-to-yaml"] super.dhall-json; + # For reasons that are not quire clear 'dhall-json' won't compile without 'tasty 1.4' due to its tests + # https://github.com/commercialhaskell/stackage/issues/5795 + # This issue can be mitigated with 'dontCheck' which skips the tests and their compilation. + dhall-json = generateOptparseApplicativeCompletions ["dhall-to-json" "dhall-to-yaml"] (dontCheck super.dhall-json); dhall-nix = generateOptparseApplicativeCompletion "dhall-to-nix" super.dhall-nix; # https://github.com/haskell-hvr/netrc/pull/2#issuecomment-469526558