init: dcrd, dcrwallet, and dcrctl at 2.0.6. init modules for dcrd and dcrwallet
Signed-off-by: stakeynet <git@stakey.net>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "dcrctl";
|
||||
version = "2.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "decred";
|
||||
repo = "dcrctl";
|
||||
rev = "release-v${finalAttrs.version}";
|
||||
hash = "sha256-TxXPPe4AUEck3dFS0+TJgEPenAP43UOwqKWK/3unzjA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-YctyhZV6qf8xPnjrkkOwerazKHVOUAkpKe7kV3t6Tis=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://decred.org";
|
||||
description = "Decred CLI tool";
|
||||
license = with lib.licenses; [ isc ];
|
||||
mainProgram = "dcrctl";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "dcrd";
|
||||
version = "2.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "decred";
|
||||
repo = "dcrd";
|
||||
rev = "dabb3760c7ae45e42ee55f0d86dd8def61b41a69";
|
||||
hash = "sha256-mSq4SRSnZOoCuRKVwmb8Y6+KbaTtg+DLf4YX5oApx0k=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-kzb8qh1j2+TlX+et0RSq5qU1LHSEs3Kaf0nHOnGjdd0=";
|
||||
|
||||
subPackages = [
|
||||
"."
|
||||
"cmd/promptsecret"
|
||||
];
|
||||
|
||||
# Keep tests from writing outside the sandbox
|
||||
preCheck = ''
|
||||
export DCRD_APPDATA="$TMPDIR"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://decred.org";
|
||||
description = "Decred daemon in Go (golang)";
|
||||
license = with lib.licenses; [ isc ];
|
||||
mainProgram = "dcrd";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "dcrwallet";
|
||||
version = "2.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "decred";
|
||||
repo = "dcrwallet";
|
||||
rev = "release-v${finalAttrs.version}";
|
||||
hash = "sha256-MrQrDip8vE0l5XHkx/zIegSZd/AkWq1aFZLUVPdMy50=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Ulh6RxK+PvS70mJ7TYiGMzKFsR79+asWuQ5W1FAI23I=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
checkFlags = [
|
||||
# Test fails with:
|
||||
# 'x509_test.go:201: server did not report bad certificate error;
|
||||
# instead errored with [...] tls: unknown certificate authority (*url.Error)'
|
||||
"-skip=^TestUntrustedClientCert$"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://decred.org";
|
||||
description = "Decred wallet daemon written in Go (golang)";
|
||||
license = with lib.licenses; [ isc ];
|
||||
mainProgram = "dcrwallet";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user