depot/third_party/nixpkgs/pkgs/applications/blockchains/btcd/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

31 lines
803 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "btcd";
version = "0.23.3";
src = fetchFromGitHub {
owner = "btcsuite";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LdK68Ianiyrs+HVMwrkiX2ruCWKkdpuY8ylxhNbm9qI=";
};
vendorSha256 = "sha256-3w8rb0sfAIFCXqPXOKb4QwoLd7WsbFv3phu/rJCEjeY=";
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 ];
};
}