From c2b15153a8f982fda721034cb9e62e0b01768008 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 20 Sep 2021 22:31:09 +0200 Subject: [PATCH] electrs: 0.8.12 -> 0.9.0 --- pkgs/applications/blockchains/electrs/default.nix | 10 +++++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/blockchains/electrs/default.nix b/pkgs/applications/blockchains/electrs/default.nix index ec135b7e931d..e5fdca521ddd 100644 --- a/pkgs/applications/blockchains/electrs/default.nix +++ b/pkgs/applications/blockchains/electrs/default.nix @@ -1,22 +1,24 @@ { lib +, stdenv , rustPlatform , fetchFromGitHub , llvmPackages , rocksdb +, Security }: rustPlatform.buildRustPackage rec { pname = "electrs"; - version = "0.8.12"; + version = "0.9.0"; src = fetchFromGitHub { owner = "romanz"; repo = pname; rev = "v${version}"; - sha256 = "0kd5zki9f1pnwscnvd921dw0lc45nfkwk23l33nzdjn005lmsw7v"; + sha256 = "04dqbn2nfzllxfcn3v9vkfy2hn2syihijr575621r1pj65pcgf8y"; }; - cargoSha256 = "1l8dwjwj21crxampzj5c0k98xnisgy3d9c3dkgf5vaybrcp04k85"; + cargoSha256 = "0hl8q62lankrab8gq9vxmkn68drs0hw5pk0q6aiq8fxsb63dzsw0"; # needed for librocksdb-sys nativeBuildInputs = [ llvmPackages.clang ]; @@ -27,6 +29,8 @@ rustPlatform.buildRustPackage rec { ROCKSDB_LIB_DIR = "${rocksdb}/lib"; cargoBuildFlags = "--no-default-features"; + buildInputs = lib.optionals stdenv.isDarwin [ Security ]; + meta = with lib; { description = "An efficient re-implementation of Electrum Server in Rust"; homepage = "https://github.com/romanz/electrs"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c7075fd5d714..da2694eee48f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28850,7 +28850,9 @@ with pkgs; 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 { miniupnpc = miniupnpc_2;