2023-08-03 15:26:15 +00:00
|
|
|
{ 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";
|
2023-08-03 15:26:15 +00:00
|
|
|
|
2022-08-27 04:14:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nbd-wtf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-03 15:26:15 +00:00
|
|
|
hash = "sha256-UNQjxhAT0mK1In7vUtIoMoMNBV+0wkrwbDmm7m+0R3o=";
|
2022-08-27 04:14:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-03 15:26:15 +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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-12-02 22:26:50 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|