nix-bitcoin/pkgs/trustedcoin/default.nix

34 lines
943 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
2022-08-27 04:14:52 +00:00
buildGoModule rec {
pname = "trustedcoin";
2023-03-03 20:00:00 +00:00
version = "0.6.1";
2022-08-27 04:14:52 +00:00
src = fetchFromGitHub {
owner = "nbd-wtf";
repo = pname;
rev = "v${version}";
hash = "sha256-UNQjxhAT0mK1In7vUtIoMoMNBV+0wkrwbDmm7m+0R3o=";
2022-08-27 04:14:52 +00:00
};
patches = [
# https://github.com/nbd-wtf/trustedcoin/pull/22 required for regtest
(fetchpatch {
name = "add-regtest-support";
url = "https://github.com/nbd-wtf/trustedcoin/commit/aba05c55ccbfc50785328f556be8a5bd46e76beb.patch";
hash = "sha256-24mYyXjUMVSlr9IlaqaTVAPE6bxxScNgR8Bb3x2t90Y=";
})
];
vendorHash = "sha256-xvkK9rMQlXTnNyOMd79qxVSvhgPobcBk9cq4/YWbupY=";
2022-08-27 04:14:52 +00:00
subPackages = [ "." ];
meta = with lib; {
description = "Light bitcoin node implementation";
homepage = "https://github.com/nbd-wtf/trustedcoin";
maintainers = with maintainers; [ seberm fort-nix ];
platforms = platforms.linux;
};
}