diff options
author | bernie <bernie@tutanota.com> | 2018-03-03 21:40:01 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2018-03-04 17:23:42 +0000 |
commit | 3a094f473aa76937480d563e53886c395fcb1eef (patch) | |
tree | cc5c90b402c43c64fda6bcf31f15fc94222e4931 /pkgs/applications/altcoins | |
parent | fc26bfecef13ed9417479aea10048de204fa0df4 (diff) | |
download | nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar.gz nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar.bz2 nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar.lz nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar.xz nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.tar.zst nixpkgs-3a094f473aa76937480d563e53886c395fcb1eef.zip |
add decred package
Diffstat (limited to 'pkgs/applications/altcoins')
-rw-r--r-- | pkgs/applications/altcoins/dcrd.nix | 33 | ||||
-rw-r--r-- | pkgs/applications/altcoins/dcrwallet.nix | 42 | ||||
-rw-r--r-- | pkgs/applications/altcoins/default.nix | 3 |
3 files changed, 78 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/dcrd.nix b/pkgs/applications/altcoins/dcrd.nix new file mode 100644 index 00000000000..8a8c4a7f102 --- /dev/null +++ b/pkgs/applications/altcoins/dcrd.nix @@ -0,0 +1,33 @@ +{ stdenv, lib, go, buildGoPackage, dep, fetchgit, git, cacert }: + +buildGoPackage rec { + name = "dcrd-${version}"; + version = "1.1.2"; + rev = "refs/tags/v${version}"; + goPackagePath = "github.com/decred/dcrd"; + + 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 = "0xcynipdn9zmmralxj0hjrwyanvhkwfj2b1vvjk5zfc95s2xc1q9"; + }; + + preBuild = '' + export CWD=$(pwd) + cd go/src/github.com/decred/dcrd + dep ensure + go install . ./cmd/... + cd $CWD + ''; + + meta = { + homepage = "https://decred.org"; + description = "Decred daemon in Go (golang)"; + license = with lib.licenses; [ isc ]; + }; +} diff --git a/pkgs/applications/altcoins/dcrwallet.nix b/pkgs/applications/altcoins/dcrwallet.nix new file mode 100644 index 00000000000..aa6e8a0315e --- /dev/null +++ b/pkgs/applications/altcoins/dcrwallet.nix @@ -0,0 +1,42 @@ +{ 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 ]; + }; +} diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index 09cf5a057f5..c68f78a0700 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -26,6 +26,9 @@ rec { dashpay = callPackage ./dashpay.nix { }; + dcrd = callPackage ./dcrd.nix { }; + dcrwallet = callPackage ./dcrwallet.nix { }; + dero = callPackage ./dero.nix { }; dogecoin = callPackage ./dogecoin.nix { withGui = true; }; |