diff options
author | 0xb10c <b10c@b10c.me> | 2022-11-07 11:47:24 +0100 |
---|---|---|
committer | 0xb10c <b10c@b10c.me> | 2022-11-07 13:32:03 +0100 |
commit | acc4e8eb237f83d0e85463722c9411ee0de44f8a (patch) | |
tree | 1c87fc56208a995224f870d6cbadeae7b82c678e /pkgs/applications/blockchains/btcd | |
parent | 011e62ddd7575836aa85245c9c38585e6b2f5078 (diff) | |
download | nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar.gz nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar.bz2 nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar.lz nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar.xz nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.tar.zst nixlib-acc4e8eb237f83d0e85463722c9411ee0de44f8a.zip |
btcd: init at 0.23.3
Diffstat (limited to 'pkgs/applications/blockchains/btcd')
-rw-r--r-- | pkgs/applications/blockchains/btcd/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/btcd/default.nix b/pkgs/applications/blockchains/btcd/default.nix new file mode 100644 index 000000000000..34a6aa1dad83 --- /dev/null +++ b/pkgs/applications/blockchains/btcd/default.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +} |