diff --git a/pkgs/development/libraries/haskell/doctest/default.nix b/pkgs/development/libraries/haskell/doctest/default.nix new file mode 100644 index 00000000000..df92c4a6cf5 --- /dev/null +++ b/pkgs/development/libraries/haskell/doctest/default.nix @@ -0,0 +1,16 @@ +{ cabal, deepseq, filepath, ghcPaths, syb, transformers }: + +cabal.mkDerivation (self: { + pname = "doctest"; + version = "0.9.5"; + sha256 = "073q56gyhkb7r4f94b9nx341dkmgapy8gig7f668jkghv2zci5ws"; + isLibrary = true; + isExecutable = true; + buildDepends = [ deepseq filepath ghcPaths syb transformers ]; + meta = { + homepage = "https://github.com/sol/doctest-haskell#readme"; + description = "Test interactive Haskell examples"; + license = self.stdenv.lib.licenses.mit; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 19df77300b6..91576707eb8 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -733,6 +733,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); dns = callPackage ../development/libraries/haskell/dns {}; + doctest = callPackage ../development/libraries/haskell/doctest {}; + dotgen = callPackage ../development/libraries/haskell/dotgen {}; doubleConversion = callPackage ../development/libraries/haskell/double-conversion {};