From 61042120420a9635a70727f673d72053ab2ee0d9 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 28 Nov 2022 13:39:31 +0000 Subject: [PATCH] doctest-discover: init at 0.2.0.0 --- horizon.dhall | 1 + overlay.nix | 2 ++ pkgs/doctest-discover.nix | 45 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 pkgs/doctest-discover.nix diff --git a/horizon.dhall b/horizon.dhall index 83feb64..8e39733 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -147,6 +147,7 @@ let otherLibraries = , H.callHackage "dependent-sum-template" "0.1.1.1" , H.callHackage "deriving-compat" "0.6.1" , H.callHackage "dictionary-sharing" "0.1.0.0" + , H.callHackage "doctest-discover" "0.2.0.0" , H.callHackage "dom-lt" "0.2.3" , H.callCabal2nix "flat" diff --git a/overlay.nix b/overlay.nix index f059e3c..3405834 100644 --- a/overlay.nix +++ b/overlay.nix @@ -99,6 +99,8 @@ final: prev: with pkgs.haskell.lib; { dictionary-sharing = final.callPackage (./pkgs/dictionary-sharing.nix) { }; + doctest-discover = final.callPackage (./pkgs/doctest-discover.nix) { }; + dom-lt = final.callPackage (./pkgs/dom-lt.nix) { }; flat = final.callPackage (./pkgs/flat.nix) { }; diff --git a/pkgs/doctest-discover.nix b/pkgs/doctest-discover.nix new file mode 100644 index 0000000..58a61a4 --- /dev/null +++ b/pkgs/doctest-discover.nix @@ -0,0 +1,45 @@ +{ mkDerivation +, aeson +, base +, bytestring +, directory +, doctest +, filepath +, lib +}: +mkDerivation { + pname = "doctest-discover"; + version = "0.2.0.0"; + sha256 = "a953aa50837e52efc766a77e382c2be2acbc887fa6dadbc54b756f59d6c49ec8"; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + base + bytestring + directory + doctest + filepath + ]; + executableHaskellDepends = [ + aeson + base + bytestring + directory + doctest + filepath + ]; + testHaskellDepends = [ base doctest ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://github.com/karun012/doctest-discover"; + description = "Easy way to run doctests via cabal"; + license = lib.licenses.publicDomain; + broken = false; +} -- GitLab