btcd: init at 0.23.3

This commit is contained in:
0xb10c 2022-11-07 11:47:24 +01:00
parent 011e62ddd7
commit acc4e8eb23
No known key found for this signature in database
GPG Key ID: E2FFD5B1D88CA97D
3 changed files with 39 additions and 0 deletions

View File

@ -69,6 +69,12 @@
fingerprint = "F466 A548 AD3F C1F1 8C88 4576 8702 7528 B006 D66D";
}];
};
_0xB10C = {
email = "nixpkgs@b10c.me";
name = "0xB10C";
github = "0xb10c";
githubId = 19157360;
};
_0xbe7a = {
email = "nix@be7a.de";
name = "Bela Stoyan";

View File

@ -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 ];
};
}

View File

@ -33395,6 +33395,8 @@ with pkgs;
inherit (darwin) autoSignDarwinBinariesHook;
};
btcd = callPackage ../applications/blockchains/btcd { };
cgminer = callPackage ../applications/blockchains/cgminer { };
chia = callPackage ../applications/blockchains/chia { };