Files
nix-decred/pkgs/dcrd.nix
T

38 lines
707 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "dcrd";
version = "2.1.6";
src = fetchFromGitHub {
owner = "decred";
repo = "dcrd";
rev = "release-v${finalAttrs.version}";
hash = "sha256-ZMcT7fvSRfVQ3o1MDm1lW5jSxWOqSVPRig6s4w08kvU=";
};
vendorHash = "sha256-o+wiq5xILbWbjy3+LsozD/v5NlCdruKt+FasPL+BpN8=";
subPackages = [
"."
"cmd/promptsecret"
];
# Keep tests from writing outside the sandbox
preCheck = ''
export DCRD_APPDATA="$TMPDIR"
'';
meta = {
homepage = "https://decred.org";
description = "Decred daemon in Go (golang)";
license = with lib.licenses; [ isc ];
mainProgram = "dcrd";
};
})