From c32ea917d0df019f2e28aab1f3ca074f8698c5af Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Fri, 1 Oct 2021 14:39:30 +0200 Subject: [PATCH] haskellPackages.candid: add workaround for doctest failure This is fixed properly in candid 0.3 which we'll have soon, but in the meantime we can just disable the offending warning. A real shame that doctests are influenced by compiler warnings. --- pkgs/development/haskell-modules/configuration-common.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index f79d32d929c3..b2708b495c41 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1992,4 +1992,8 @@ EOT hw-xml = assert pkgs.lib.versionOlder self.generic-lens.version "2.2.0.0"; doJailbreak super.hw-xml; + # doctests fail due to deprecation warnings + candid = assert pkgs.lib.versionOlder super.candid.version "0.3"; + appendConfigureFlags super.candid [ "--ghc-option=-Wno-deprecations" ]; + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super