From 45a8897d6b9dba1d857b726a56d196ce1ea87054 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 28 Nov 2022 13:40:09 +0000 Subject: [PATCH] hedgehog-extras: init at github:input-output-hk/hedgehog-extras/26b76bbcecfe48d0a87099f213f58e3778aa1f59 --- horizon.dhall | 5 +++ overlay.nix | 2 ++ pkgs/hedgehog-extras.nix | 77 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 pkgs/hedgehog-extras.nix diff --git a/horizon.dhall b/horizon.dhall index a859536..27439ec 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -177,6 +177,11 @@ let otherLibraries = (None H.Subdir) , H.callHackage "haskell-src" "1.0.4" , callCardanoBase "heapwords" "heapwords" + , H.callCabal2nix + "hedgehog-extras" + "https://github.com/input-output-hk/hedgehog-extras" + "26b76bbcecfe48d0a87099f213f58e3778aa1f59" + (None H.Subdir) , H.callHackage "hedgehog-fn" "1.0" , H.callHackage "hedgehog-quickcheck" "0.1.1" , H.callHackage "heredoc" "0.2.0.0" diff --git a/overlay.nix b/overlay.nix index 7160867..7708961 100644 --- a/overlay.nix +++ b/overlay.nix @@ -119,6 +119,8 @@ final: prev: with pkgs.haskell.lib; { heapwords = final.callPackage (./pkgs/heapwords.nix) { }; + hedgehog-extras = final.callPackage (./pkgs/hedgehog-extras.nix) { }; + hedgehog-fn = final.callPackage (./pkgs/hedgehog-fn.nix) { }; hedgehog-quickcheck = final.callPackage (./pkgs/hedgehog-quickcheck.nix) { }; diff --git a/pkgs/hedgehog-extras.nix b/pkgs/hedgehog-extras.nix new file mode 100644 index 0000000..358c2cc --- /dev/null +++ b/pkgs/hedgehog-extras.nix @@ -0,0 +1,77 @@ +{ mkDerivation +, aeson +, aeson-pretty +, async +, base +, bytestring +, deepseq +, directory +, exceptions +, fetchgit +, filepath +, hedgehog +, hw-aeson +, lib +, mmorph +, mtl +, network +, process +, resourcet +, stm +, temporary +, text +, time +, transformers +, unliftio +, unordered-containers +, yaml +}: +mkDerivation { + pname = "hedgehog-extras"; + version = "0.2.0.0"; + src = fetchgit { + url = "https://github.com/input-output-hk/hedgehog-extras"; + sha256 = "14fq596n48jx2yys7pzz2rfdssd6hj28z6wb7dl4pjzpkznbwj3a"; + rev = "26b76bbcecfe48d0a87099f213f58e3778aa1f59"; + fetchSubmodules = true; + }; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + aeson-pretty + async + base + bytestring + deepseq + directory + exceptions + filepath + hedgehog + hw-aeson + mmorph + mtl + network + process + resourcet + stm + temporary + text + time + transformers + unliftio + unordered-containers + yaml + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Supplemental library for hedgehog"; + license = lib.licenses.asl20; + broken = false; +} -- GitLab