diff --git a/horizon.dhall b/horizon.dhall index eca02701ecb96ce14fa17da48384b1c12cb015ba..6f891615000d531605093cb2dd12cfd921331d68 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 6d8b75575c38ba44baf060d07a34ee797616df29..4c3e4b9fa4a24bd154c36f6262f1845e60dca0cf 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 0000000000000000000000000000000000000000..4a2bbf5fb18146a358924116f12f724f2b512d37 --- /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; +}