2022-11-07 11:47:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "btcd";
|
2023-12-31 13:04:24 +01:00
|
|
|
version = "0.24.0";
|
2022-11-07 11:47:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "btcsuite";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-31 13:04:24 +01:00
|
|
|
hash = "sha256-TLnJZW2CkvAqPTnJKfBY41siHtdZ+HRABsc+4vnQ9/w=";
|
2022-11-07 11:47:24 +01:00
|
|
|
};
|
|
|
|
|
2023-12-31 13:04:24 +01:00
|
|
|
vendorHash = "sha256-quJEpSDltXhJcgI9H707p3HeLj1uuLzaMplT+YXzh/4=";
|
2022-11-07 11:47:24 +01:00
|
|
|
|
|
|
|
subPackages = [ "." "cmd/*" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
DIR="github.com/btcsuite/btcd/"
|
|
|
|
# TestCreateDefaultConfigFile requires the sample-btcd.conf in $DIR
|
|
|
|
mkdir -p $DIR
|
|
|
|
cp sample-btcd.conf $DIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An alternative full node bitcoin implementation written in Go (golang)";
|
|
|
|
homepage = "https://github.com/btcsuite/btcd";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ _0xB10C ];
|
|
|
|
};
|
|
|
|
}
|