From acc4e8eb237f83d0e85463722c9411ee0de44f8a Mon Sep 17 00:00:00 2001 From: 0xb10c Date: Mon, 7 Nov 2022 11:47:24 +0100 Subject: [PATCH] btcd: init at 0.23.3 --- maintainers/maintainer-list.nix | 6 ++++ .../applications/blockchains/btcd/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/applications/blockchains/btcd/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 860ac22872e4..99907a6877f8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d05df3751808..a043b0a32d15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33395,6 +33395,8 @@ with pkgs; inherit (darwin) autoSignDarwinBinariesHook; }; + btcd = callPackage ../applications/blockchains/btcd { }; + cgminer = callPackage ../applications/blockchains/cgminer { }; chia = callPackage ../applications/blockchains/chia { };