nix-bitcoin/pkgs/electrs/default.nix
2021-02-23 10:51:43 +00:00

25 lines
789 B
Nix

{ lib, rustPlatform, llvmPackages, fetchurl, pkgs }:
rustPlatform.buildRustPackage rec {
pname = "electrs";
version = "0.8.8";
src = fetchurl {
url = "https://github.com/romanz/electrs/archive/v${version}.tar.gz";
# Use ./get-sha256.sh to fetch latest (verified) sha256
sha256 = "e6ec3f49c8cb4da27ee6e1ba7323bb6e3af1ebf881719c5710c71d151435660f";
};
# Needed for librocksdb-sys
nativeBuildInputs = [ llvmPackages.clang ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
cargoSha256 = "0mj2p8810l5jspbsdg3cjz6qk76sczsh9fpifxxsbkznk63qv88j";
meta = with lib; {
description = "An efficient Electrum Server in Rust";
homepage = "https://github.com/romanz/electrs";
license = licenses.mit;
maintainers = with maintainers; [ earvstedt ];
};
}