2020-04-14 02:04:03 -07:00
|
|
|
{ lib, rustPlatform, llvmPackages, fetchurl, pkgs }:
|
2020-03-04 09:08:55 -08:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "electrs";
|
2021-02-23 02:49:59 -08:00
|
|
|
version = "0.8.8";
|
2020-03-04 09:08:55 -08:00
|
|
|
|
2020-04-14 02:04:03 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/romanz/electrs/archive/v${version}.tar.gz";
|
|
|
|
# Use ./get-sha256.sh to fetch latest (verified) sha256
|
2021-02-23 02:49:59 -08:00
|
|
|
sha256 = "e6ec3f49c8cb4da27ee6e1ba7323bb6e3af1ebf881719c5710c71d151435660f";
|
2019-05-23 07:03:56 -07:00
|
|
|
};
|
|
|
|
|
2020-03-04 09:08:55 -08:00
|
|
|
# Needed for librocksdb-sys
|
2020-04-14 02:04:03 -07:00
|
|
|
nativeBuildInputs = [ llvmPackages.clang ];
|
2020-03-04 09:08:55 -08:00
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
2019-05-23 07:03:56 -07:00
|
|
|
|
2021-02-23 02:49:59 -08:00
|
|
|
cargoSha256 = "0mj2p8810l5jspbsdg3cjz6qk76sczsh9fpifxxsbkznk63qv88j";
|
2019-05-23 07:03:56 -07:00
|
|
|
|
2020-03-04 09:08:55 -08: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 07:03:56 -07:00
|
|
|
};
|
|
|
|
}
|