biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / blockchains / dcrd / default.nix
blobd62a901c99fe4e6b274f20df838b3b17cd1f2c2d
1 { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
3 buildGoModule rec {
4   pname = "dcrd";
5   version = "1.8.1";
7   src = fetchFromGitHub {
8     owner = "decred";
9     repo = "dcrd";
10     rev = "refs/tags/release-v${version}";
11     hash = "sha256-nSocqwXgJhvfbdElddbb1gGxoygmtVtK6DbiSuMxYew=";
12   };
14   patches = [
15     (fetchpatch {
16       name = "dcrd-appdata-env-variable.patch";
17       url = "https://github.com/decred/dcrd/pull/3152/commits/216132d7d852f3f2e2a6bf7f739f47ed62ac9387.patch";
18       hash = "sha256-R1GzP0qVP5XW1GnSJqFOpJVnwrVi/62tL1L2mc33+Dw=";
19     })
20   ];
22   vendorHash = "sha256-Napcfj1+KjQ21Jb/qpIzg2W/grzun2Pz5FV5yIBXoTo=";
24   subPackages = [ "." "cmd/promptsecret" ];
26   __darwinAllowLocalNetworking = true;
28   preCheck = ''
29     export DCRD_APPDATA="$TMPDIR"
30   '';
32   meta = {
33     homepage = "https://decred.org";
34     description = "Decred daemon in Go (golang)";
35     license = with lib.licenses; [ isc ];
36     maintainers = with lib.maintainers; [ juaningan ];
37   };