nix-decred/pkgs/dcrctl.nix

33 lines
578 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "dcrctl";
version = "2.1.5";
src = fetchFromGitHub {
owner = "decred";
repo = "dcrctl";
rev = "release-v${finalAttrs.version}";
hash = "sha256-Cw+lLPjq+kcQ0aH//wBvAK2cNIWodEJXku8jUVBys5o=";
};
vendorHash = "sha256-THlkOwgggTEz3ajRNgSxK6n5dKhCS4UGw/61Rc9q1nc=";
ldflags = [
"-s"
"-w"
];
meta = {
homepage = "https://decred.org";
description = "Decred CLI tool";
license = with lib.licenses; [ isc ];
mainProgram = "dcrctl";
};
})