Merge pull request #68798 from juaningan/decred

decred: 1.1.2 -> 1.5.0
This commit is contained in:
Mario Rodas 2020-06-27 19:58:04 -05:00 committed by GitHub
commit 2fceb3566b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 53 deletions

View File

@ -1,34 +1,24 @@
{ stdenv, lib, go, buildGoPackage, dep, fetchgit, git, cacert }: { lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "dcrd"; pname = "dcrd";
version = "1.1.2"; version = "1.5.1";
rev = "refs/tags/v${version}";
goPackagePath = "github.com/decred/dcrd";
buildInputs = [ go git dep cacert ]; src = fetchFromGitHub {
owner = "decred";
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; repo = "dcrd";
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; rev = "refs/tags/release-v${version}";
sha256 = "1ggw289y1f4dqvj3w60q9bahq8bblbfjymn5xy04ldylr3qlxm9x";
src = fetchgit {
inherit rev;
url = "https://${goPackagePath}";
sha256 = "0xcynipdn9zmmralxj0hjrwyanvhkwfj2b1vvjk5zfc95s2xc1q9";
}; };
preBuild = '' vendorSha256 = "03aw6mcvp1vr01ppxy673jf5hdryd5032cxndlkaiwg005mxp1dy";
export CWD=$(pwd)
cd go/src/github.com/decred/dcrd subPackages = [ "." "cmd/dcrctl" "cmd/promptsecret" ];
dep ensure
go install . ./cmd/...
cd $CWD
'';
meta = { meta = {
homepage = "https://decred.org"; homepage = "https://decred.org";
description = "Decred daemon in Go (golang)"; description = "Decred daemon in Go (golang)";
license = with lib.licenses; [ isc ]; license = with lib.licenses; [ isc ];
broken = stdenv.isLinux; # 2018-04-10 maintainers = with lib.maintainers; [ juaningan ];
}; };
} }

View File

@ -1,43 +1,24 @@
{ stdenv, lib, go, buildGoPackage, dep, fetchgit, git, cacert }: { lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "dcrwallet"; pname = "dcrwallet";
version = "1.1.2"; version = "1.5.1";
src = fetchFromGitHub {
owner = "decred";
repo = "dcrwallet";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
goPackagePath = "github.com/decred/dcrwallet"; sha256 = "0ij2mwvdxg78p9qbdf9wm7aaphfg4j8lqgrjyjsj3kyi1l458ds9";
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 = '' vendorSha256 = "0qrrr92cad399xwr64qa9h41wqqaj0dy5mw248g5v53zars541w7";
export CWD=$(pwd)
cd go/src/github.com/decred/dcrwallet
dep ensure
'';
buildPhase = ''
runHook preBuild
go build
'';
installPhase = ''
mkdir -pv $out/bin
cp -v dcrwallet $out/bin
'';
subPackages = [ "." ];
meta = { meta = {
homepage = "https://decred.org"; homepage = "https://decred.org";
description = "Decred daemon in Go (golang)"; description = "A secure Decred wallet daemon written in Go (golang)";
license = with lib.licenses; [ isc ]; license = with lib.licenses; [ isc ];
broken = stdenv.isLinux; # 2018-04-10 maintainers = with lib.maintainers; [ juaningan ];
}; };
} }