From e69353aaf70db2f12cd3ceb177ac6dd7305cda80 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Fri, 19 Nov 2021 18:29:50 +0100 Subject: [PATCH] haskellPackages.doctest_0_18_2: init at 0.18.2 Since hledger-lib 1.23 won't build with the latest doctest, there's likely a change in behavior somewhere. 0.18.2 is then the closest doctest to stackage's which works with GHC >= 9, so let's stick with it for now. --- .../configuration-hackage2nix/main.yaml | 1 + .../haskell-modules/hackage-packages.nix | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 7c106393dd9f..d59383e44b0a 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -133,6 +133,7 @@ extra-packages: - ghc-lib == 9.0.1.* # 2021-11-05: Need one GHC 9.0.1 compatible version - ghc-lib-parser == 9.0.1.* # 2021-11-05: Need one GHC 9.0.1 compatible version - ghc-lib-parser-ex == 9.0.* # 2021-11-05: Need one GHC 9.0.1 compatible version + - doctest == 0.18.* # 2021-11-19: closest to stackage version for GHC 9.* package-maintainers: abbradar: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 4aa459e191b7..686c610186ca 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -80227,6 +80227,36 @@ self: { license = lib.licenses.mit; }) {}; + "doctest_0_18_2" = callPackage + ({ mkDerivation, base, base-compat, code-page, deepseq, directory + , exceptions, filepath, ghc, ghc-paths, hspec, hspec-core, HUnit + , mockery, process, QuickCheck, setenv, silently, stringbuilder + , syb, transformers + }: + mkDerivation { + pname = "doctest"; + version = "0.18.2"; + sha256 = "0c48dpxa8i3q5xh2shd2p2xxhrsy7wdil6dg4mayr3lkk1dlwbfp"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base base-compat code-page deepseq directory exceptions filepath + ghc ghc-paths process syb transformers + ]; + executableHaskellDepends = [ + base base-compat code-page deepseq directory exceptions filepath + ghc ghc-paths process syb transformers + ]; + testHaskellDepends = [ + base base-compat code-page deepseq directory exceptions filepath + ghc ghc-paths hspec hspec-core HUnit mockery process QuickCheck + setenv silently stringbuilder syb transformers + ]; + description = "Test interactive Haskell examples"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "doctest_0_20_0" = callPackage ({ mkDerivation, base, base-compat, code-page, deepseq, directory , exceptions, filepath, ghc, ghc-paths, hspec, hspec-core