2020-04-14 12:04:03 +03:00
|
|
|
{ lib, rustPlatform, llvmPackages, fetchurl, pkgs }:
|
2020-03-04 20:08:55 +03:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "electrs";
|
2021-01-20 15:20:37 +03:00
|
|
|
version = "0.8.7";
|
2020-03-04 20:08:55 +03:00
|
|
|
|
2020-04-14 12:04:03 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/romanz/electrs/archive/v${version}.tar.gz";
|
|
|
|
# Use ./get-sha256.sh to fetch latest (verified) sha256
|
2021-01-20 15:20:37 +03:00
|
|
|
sha256 = "f967f322ebf86dd32d291716fa8e8b155da4b35d003b116b4e7007054d6b515e";
|
2019-05-23 17:03:56 +03:00
|
|
|
};
|
|
|
|
|
2020-03-04 20:08:55 +03:00
|
|
|
# Needed for librocksdb-sys
|
2020-04-14 12:04:03 +03:00
|
|
|
nativeBuildInputs = [ llvmPackages.clang ];
|
2020-03-04 20:08:55 +03:00
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
2019-05-23 17:03:56 +03:00
|
|
|
|
2021-01-20 15:20:37 +03:00
|
|
|
cargoSha256 = "12ypx0rkpbjl4awzx8ga30qhiqqd56a24q4jwlxxnfpw9ks1z252";
|
2019-05-23 17:03:56 +03:00
|
|
|
|
2020-03-04 20:08:55 +03:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An efficient Electrum Server in Rust";
|
|
|
|
homepage = "https://github.com/romanz/electrs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ earvstedt ];
|
2019-05-23 17:03:56 +03:00
|
|
|
};
|
|
|
|
}
|