script

A Script library.
git clone git://git.ppad.tech/script.git
Log | Files | Refs | LICENSE

commit a82819e727030918934609c0855b27804662ecf7
parent 4aea313efabd6fbdd82e06446cf3dfd9bcdfff9c
Author: Jared Tobin <jared@jtobin.io>
Date:   Wed, 18 Dec 2024 11:26:16 -0330

lib: add base58 dep

Diffstat:
Mflake.nix | 10+++++++++-
Mppad-btcprim.cabal | 3++-
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -7,6 +7,11 @@ url = "git://git.ppad.tech/sha256.git"; ref = "master"; }; + ppad-base58 = { + type = "git"; + url = "git://git.ppad.tech/base58.git"; + ref = "master"; + }; ppad-bech32 = { type = "git"; url = "git://git.ppad.tech/bech32.git"; @@ -22,7 +27,7 @@ }; outputs = { self, nixpkgs, flake-utils, - ppad-sha256, ppad-ripemd160, ppad-bech32 }: + ppad-sha256, ppad-ripemd160, ppad-bech32, ppad-base58 }: flake-utils.lib.eachDefaultSystem (system: let lib = "ppad-btcprim"; @@ -32,15 +37,18 @@ sha256 = ppad-sha256.packages.${system}.default; bech32 = ppad-bech32.packages.${system}.default; + base58 = ppad-base58.packages.${system}.default; ripemd160 = ppad-ripemd160.packages.${system}.default; hpkgs = pkgs.haskell.packages.ghc981.extend (new: old: { ppad-sha256 = sha256; ppad-bech32 = bech32; + ppad-base58 = base58; ppad-ripemd160 = ripemd160; ${lib} = old.callCabal2nixWithOptions lib ./. "--enable-profiling" { ppad-sha256 = new.ppad-sha256; ppad-bech32 = new.ppad-bech32; + ppad-base58 = new.ppad-base58; ppad-ripemd160 = new.ppad-ripemd160; }; }); diff --git a/ppad-btcprim.cabal b/ppad-btcprim.cabal @@ -28,9 +28,10 @@ library base >= 4.9 && < 5 , bytestring >= 0.9 && < 0.13 , primitive >= 0.8 && < 0.10 + , ppad-base58 >= 0.1 && < 0.2 + , ppad-bech32 >= 0.1 && < 0.2 , ppad-sha256 >= 0.2 && < 0.3 , ppad-ripemd160 >= 0.1 && < 0.2 - , ppad-bech32 >= 0.1 && < 0.2 test-suite btcprim-tests type: exitcode-stdio-1.0