2018-03-03 20:40:01 +00:00
|
|
|
{ stdenv, lib, go, buildGoPackage, dep, fetchgit, git, cacert }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dcrd";
|
2018-03-03 20:40:01 +00:00
|
|
|
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 ];
|
2018-04-10 19:57:09 +00:00
|
|
|
broken = stdenv.isLinux; # 2018-04-10
|
2018-03-03 20:40:01 +00:00
|
|
|
};
|
|
|
|
}
|