28 lines
659 B
Nix
28 lines
659 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "trustedcoin";
|
|
version = "0.8.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nbd-wtf";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-b+Icq/9qMF+Zvh7RuG9RxU8/U07Tl8ymZvNKWsZzatw=";
|
|
};
|
|
|
|
vendorHash = "sha256-fW+EoNPC0mH8C06Q6GXNwFdzE7oQT+qd+B7hGGml+hc=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
preCheck = ''
|
|
ln -s $TMP/go/bin/trustedcoin .
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Light bitcoin node implementation";
|
|
homepage = "https://github.com/nbd-wtf/trustedcoin";
|
|
maintainers = with maintainers; [ seberm fort-nix ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|