nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "dcrwallet";
9 version = "2.1.3";
10
11 src = fetchFromGitHub {
12 owner = "decred";
13 repo = "dcrwallet";
14 rev = "release-v${version}";
15 hash = "sha256-oB+E2NVz4zlLUWBhdmyGq2jfsMLuF2OpPkBn7/daxDw=";
16 };
17
18 vendorHash = "sha256-P9u+Pxy/TtArhU/fu2nXg6PyyoCm9GPLVRX6twheERQ=";
19
20 subPackages = [ "." ];
21
22 checkFlags = [
23 # Test fails with:
24 # 'x509_test.go:201: server did not report bad certificate error;
25 # instead errored with [...] tls: unknown certificate authority (*url.Error)'
26 "-skip=^TestUntrustedClientCert$"
27 ];
28
29 meta = {
30 homepage = "https://decred.org";
31 description = "Secure Decred wallet daemon written in Go (golang)";
32 license = with lib.licenses; [ isc ];
33 maintainers = with lib.maintainers; [ juaningan ];
34 mainProgram = "dcrwallet";
35 };
36}