mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 06:42:51 +03:00
9efcdaf8bb
`vendorSha256` has been deprecated.
34 lines
943 B
Nix
34 lines
943 B
Nix
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
|
|
|
buildGoModule rec {
|
|
pname = "trustedcoin";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nbd-wtf";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-UNQjxhAT0mK1In7vUtIoMoMNBV+0wkrwbDmm7m+0R3o=";
|
|
};
|
|
|
|
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=";
|
|
|
|
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;
|
|
};
|
|
}
|