blockbook: 0.3.2 -> 0.3.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ stdenv
|
||||
, buildGoPackage
|
||||
, buildGoModule
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rocksdb
|
||||
@@ -12,25 +12,31 @@
|
||||
, lz4
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "blockbook";
|
||||
version = "0.3.2";
|
||||
|
||||
goPackagePath = "blockbook";
|
||||
version = "0.3.3";
|
||||
commit = "b6961ca";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trezor";
|
||||
repo = "blockbook";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hcgz4b7k8ia4dnjg6bbii95sqg3clc40ybwwc4qz3jv21ikc54x";
|
||||
sha256 = "01nb4if2dix2h95xvqvafil325jjw2a4v1izb9mad0cjqcf8rk6n";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
modSha256 = "1zp06mpkxaxykw8pr679fg9dd7039qj13j5lknxp7hr8dga0jvpy";
|
||||
|
||||
buildInputs = [ bzip2 zlib snappy zeromq lz4 ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config packr ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X github.com/trezor/blockbook/common.version=${version}
|
||||
-X github.com/trezor/blockbook/common.gitcommit=${commit}
|
||||
-X github.com/trezor/blockbook/common.buildDate=unknown
|
||||
'';
|
||||
|
||||
preBuild = lib.optionalString stdenv.isDarwin ''
|
||||
ulimit -n 8192
|
||||
'' + ''
|
||||
@@ -45,7 +51,7 @@ buildGoPackage rec {
|
||||
description = "Trezor address/account balance backend";
|
||||
homepage = "https://github.com/trezor/blockbook";
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [ mmahut ];
|
||||
maintainers = with maintainers; [ mmahut maintainers."1000101" ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user