nixpkgs/pkgs/applications/blockchains/dcrd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
983 B
Nix
Raw Normal View History

2023-08-06 09:54:12 +00:00
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
2018-03-03 20:40:01 +00:00
buildGoModule rec {
pname = "dcrd";
2023-10-08 04:52:49 +00:00
version = "1.8.1";
2018-03-03 20:40:01 +00:00
src = fetchFromGitHub {
owner = "decred";
repo = "dcrd";
rev = "refs/tags/release-v${version}";
2023-10-08 04:52:49 +00:00
hash = "sha256-nSocqwXgJhvfbdElddbb1gGxoygmtVtK6DbiSuMxYew=";
2018-03-03 20:40:01 +00:00
};
2023-08-06 09:54:12 +00:00
patches = [
(fetchpatch {
name = "dcrd-appdata-env-variable.patch";
url = "https://github.com/decred/dcrd/pull/3152/commits/216132d7d852f3f2e2a6bf7f739f47ed62ac9387.patch";
hash = "sha256-R1GzP0qVP5XW1GnSJqFOpJVnwrVi/62tL1L2mc33+Dw=";
})
];
2023-10-08 04:52:49 +00:00
vendorHash = "sha256-Napcfj1+KjQ21Jb/qpIzg2W/grzun2Pz5FV5yIBXoTo=";
2023-06-27 16:21:48 +00:00
subPackages = [ "." "cmd/promptsecret" ];
2018-03-03 20:40:01 +00:00
2023-08-06 09:54:12 +00:00
__darwinAllowLocalNetworking = true;
preCheck = ''
export DCRD_APPDATA="$TMPDIR"
'';
2018-03-03 20:40:01 +00:00
meta = {
homepage = "https://decred.org";
description = "Decred daemon in Go (golang)";
license = with lib.licenses; [ isc ];
maintainers = with lib.maintainers; [ juaningan ];
2018-03-03 20:40:01 +00:00
};
}