Merge pull request #140018 from prusnak/electrs-next
This commit is contained in:
commit
ad266cac49
2 changed files with 10 additions and 4 deletions
|
@ -1,22 +1,24 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
, rocksdb
|
, rocksdb
|
||||||
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "electrs";
|
pname = "electrs";
|
||||||
version = "0.8.12";
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "romanz";
|
owner = "romanz";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0kd5zki9f1pnwscnvd921dw0lc45nfkwk23l33nzdjn005lmsw7v";
|
sha256 = "04dqbn2nfzllxfcn3v9vkfy2hn2syihijr575621r1pj65pcgf8y";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1l8dwjwj21crxampzj5c0k98xnisgy3d9c3dkgf5vaybrcp04k85";
|
cargoSha256 = "0hl8q62lankrab8gq9vxmkn68drs0hw5pk0q6aiq8fxsb63dzsw0";
|
||||||
|
|
||||||
# needed for librocksdb-sys
|
# needed for librocksdb-sys
|
||||||
nativeBuildInputs = [ llvmPackages.clang ];
|
nativeBuildInputs = [ llvmPackages.clang ];
|
||||||
|
@ -27,6 +29,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
||||||
cargoBuildFlags = "--no-default-features";
|
cargoBuildFlags = "--no-default-features";
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An efficient re-implementation of Electrum Server in Rust";
|
description = "An efficient re-implementation of Electrum Server in Rust";
|
||||||
homepage = "https://github.com/romanz/electrs";
|
homepage = "https://github.com/romanz/electrs";
|
||||||
|
|
|
@ -28952,7 +28952,9 @@ with pkgs;
|
||||||
|
|
||||||
eclair = callPackage ../applications/blockchains/eclair { };
|
eclair = callPackage ../applications/blockchains/eclair { };
|
||||||
|
|
||||||
electrs = callPackage ../applications/blockchains/electrs { };
|
electrs = callPackage ../applications/blockchains/electrs {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
elements = libsForQt5.callPackage ../applications/blockchains/elements {
|
elements = libsForQt5.callPackage ../applications/blockchains/elements {
|
||||||
miniupnpc = miniupnpc_2;
|
miniupnpc = miniupnpc_2;
|
||||||
|
|
Loading…
Reference in a new issue