summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/blockchains/dcrwallet.nix
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2019-08-28 10:37:52 -0700
committerWilliam Casarin <jb55@jb55.com>2019-08-29 05:01:42 -0700
commit72682e46546d6d024a29e2fde009372e03b45b9f (patch)
tree4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/dcrwallet.nix
parent58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff)
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/dcrwallet.nix')
-rw-r--r--pkgs/applications/blockchains/dcrwallet.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/dcrwallet.nix b/pkgs/applications/blockchains/dcrwallet.nix
new file mode 100644
index 000000000000..8d966684b23c
--- /dev/null
+++ b/pkgs/applications/blockchains/dcrwallet.nix
@@ -0,0 +1,43 @@
+{ stdenv, lib, go, buildGoPackage, dep, fetchgit, git, cacert }:
+
+buildGoPackage rec {
+ name = "dcrwallet-${version}";
+ version = "1.1.2";
+ rev = "refs/tags/v${version}";
+ goPackagePath = "github.com/decred/dcrwallet";
+
+ buildInputs = [ go git dep cacert ];
+
+ GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
+ NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
+
+ src = fetchgit {
+ inherit rev;
+ url = "https://${goPackagePath}";
+ sha256 = "058im4vmcmxcl5ir14h17wik5lagp2ay0p8qc3r99qmpfwvvz39x";
+ };
+
+ preBuild = ''
+ export CWD=$(pwd)
+ cd go/src/github.com/decred/dcrwallet
+ dep ensure
+ '';
+
+ buildPhase = ''
+ runHook preBuild
+ go build
+ '';
+
+ installPhase = ''
+ mkdir -pv $bin/bin
+ cp -v dcrwallet $bin/bin
+ '';
+
+
+ meta = {
+ homepage = "https://decred.org";
+ description = "Decred daemon in Go (golang)";
+ license = with lib.licenses; [ isc ];
+ broken = stdenv.isLinux; # 2018-04-10
+ };
+}