commit c98ddf37bc5d8c76d5440e3ecff369b86e11bdec
parent b364652ce341c38ed96f6f368bacd2dd01ec922c
Author: Jared Tobin <jared@jtobin.io>
Date: Sat, 18 Apr 2026 20:18:31 +0800
lib: add ppad-tx dependency
Add ppad-tx to cabal build-depends and flake.nix inputs
for canonical TxId and OutPoint types.
Diffstat:
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/flake.nix b/flake.nix
@@ -13,11 +13,17 @@
url = "git://git.ppad.tech/nixpkgs.git";
ref = "master";
};
+ ppad-tx = {
+ type = "git";
+ url = "git://git.ppad.tech/tx.git";
+ ref = "master";
+ inputs.ppad-nixpkgs.follows = "ppad-nixpkgs";
+ };
flake-utils.follows = "ppad-nixpkgs/flake-utils";
nixpkgs.follows = "ppad-nixpkgs/nixpkgs";
};
- outputs = { self, nixpkgs, flake-utils, ppad-nixpkgs, ppad-bolt1 }:
+ outputs = { self, nixpkgs, flake-utils, ppad-nixpkgs, ppad-bolt1, ppad-tx }:
flake-utils.lib.eachDefaultSystem (system:
let
lib = "ppad-bolt2";
@@ -33,10 +39,14 @@
(hlib.enableCabalFlag bolt1 "llvm")
[ llvm clang ];
+ tx = ppad-tx.packages.${system}.default;
+
hpkgs = pkgs.haskell.packages.ghc910.extend (new: old: {
ppad-bolt1 = bolt1-llvm;
+ ppad-tx = tx;
${lib} = new.callCabal2nix lib ./. {
ppad-bolt1 = new.ppad-bolt1;
+ ppad-tx = new.ppad-tx;
};
});
diff --git a/ppad-bolt2.cabal b/ppad-bolt2.cabal
@@ -33,6 +33,7 @@ library
, bytestring >= 0.9 && < 0.13
, deepseq >= 1.4 && < 1.6
, ppad-bolt1 >= 0.0.1 && < 0.1
+ , ppad-tx >= 0.1 && < 0.2
test-suite bolt2-tests
type: exitcode-stdio-1.0