nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 889 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "btcd"; 9 version = "0.25.0"; 10 11 src = fetchFromGitHub { 12 owner = "btcsuite"; 13 repo = "btcd"; 14 rev = "v${version}"; 15 hash = "sha256-redoqqbiVdwgNLxDzBccqRBZGwhRTIY5nE9Gx6+4POc="; 16 }; 17 18 vendorHash = "sha256-qXfZKVoTvq7gNm0G4KKSL8anB8FUt/TxoxbOtH240cc="; 19 20 subPackages = [ 21 "." 22 "cmd/*" 23 ]; 24 25 preCheck = '' 26 DIR="github.com/btcsuite/btcd/" 27 # TestCreateDefaultConfigFile requires the sample-btcd.conf in $DIR 28 mkdir -p $DIR 29 cp sample-btcd.conf $DIR 30 ''; 31 32 meta = { 33 description = "Alternative full node bitcoin implementation written in Go (golang)"; 34 homepage = "https://github.com/btcsuite/btcd"; 35 changelog = "https://github.com/btcsuite/btcd/releases/tag/v${version}"; 36 license = lib.licenses.isc; 37 maintainers = with lib.maintainers; [ _0xB10C ]; 38 }; 39}