nix-bitcoin/pkgs/electrs/default.nix

25 lines
789 B
Nix
Raw Normal View History

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