From 8a59df972ad5eafd452e97745af3580b2fd21cf4 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Fri, 2 Dec 2022 09:17:48 +0000 Subject: [PATCH] bech32-th init at 1.1.1 --- horizon.dhall | 1 + overlay.nix | 2 ++ pkgs/bech32-th.nix | 31 +++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/bech32-th.nix diff --git a/horizon.dhall b/horizon.dhall index eca0270..6f89161 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -124,6 +124,7 @@ let otherLibraries = , callCardanoBase "base-deriving-via" "base-deriving-via" , H.callHackage "base-prelude" "1.6.1" , H.callHackage "bech32" "1.1.2" + , H.callHackage "bech32-th" "1.1.1" , H.callHackage "bin" "0.1.2" , callCardanoLedger "byron-spec-chain" "eras/byron/chain/executable-spec" , callCardanoLedger diff --git a/overlay.nix b/overlay.nix index 6d8b755..4c3e4b9 100644 --- a/overlay.nix +++ b/overlay.nix @@ -29,6 +29,8 @@ final: prev: with pkgs.haskell.lib; { bech32 = final.callPackage (./pkgs/bech32.nix) { }; + bech32-th = final.callPackage (./pkgs/bech32-th.nix) { }; + bin = final.callPackage (./pkgs/bin.nix) { }; byron-spec-chain = final.callPackage (./pkgs/byron-spec-chain.nix) { }; diff --git a/pkgs/bech32-th.nix b/pkgs/bech32-th.nix new file mode 100644 index 0000000..4a2bbf5 --- /dev/null +++ b/pkgs/bech32-th.nix @@ -0,0 +1,31 @@ +{ mkDerivation +, base +, bech32 +, hspec +, hspec-discover +, lib +, template-haskell +, text +}: +mkDerivation { + pname = "bech32-th"; + version = "1.1.1"; + sha256 = "3346a2539bfafd2e4cb8ca775a0c4aeb5636f52af4a9b0a8c22478b393558814"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base bech32 template-haskell text ]; + testHaskellDepends = [ base bech32 hspec template-haskell ]; + testToolDepends = [ hspec-discover ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/input-output-hk/bech32"; + description = "Template Haskell extensions to the Bech32 library"; + license = lib.licenses.asl20; + broken = false; +} -- GitLab