biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / blockchains / btcd / default.nix
blobaeda8019c10dda20aaea0f1e2e7988fa9f2a574b
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "btcd";
5   version = "0.24.2";
7   src = fetchFromGitHub {
8     owner = "btcsuite";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-83eiVYXpyiGgLmYxj3rFk4CHG7F9UQ3vk1ZHm64Cm4A=";
12   };
14   vendorHash = "sha256-ek+gaolwpwoEEWHKYpK2OxCpk/0vywF784J3CC0UCZ4=";
16   subPackages = [ "." "cmd/*" ];
18   preCheck = ''
19     DIR="github.com/btcsuite/btcd/"
20     # TestCreateDefaultConfigFile requires the sample-btcd.conf in $DIR
21     mkdir -p $DIR
22     cp sample-btcd.conf $DIR
23   '';
25   meta = with lib; {
26     description = "Alternative full node bitcoin implementation written in Go (golang)";
27     homepage = "https://github.com/btcsuite/btcd";
28     changelog = "https://github.com/btcsuite/btcd/releases/tag/v${version}";
29     license = licenses.isc;
30     maintainers = with maintainers; [ _0xB10C ];
31   };