blockstream-electrs/package.nix
2023-08-12 12:08:06 -04:00

19 lines
463 B
Nix

{ pkgs ? import <nixpkgs> { } }:
let
productVersion = "0.4.1";
productName = "blockstream-electrs";
in
pkgs.rustPlatform.buildRustPackage {
name = "${productName}";
version = "${productVersion}";
src = pkgs.lib.cleanSource ./.;
cargoSha256 = "sha256-d84QNj9SIRUwtlsa9sdYKuYf0oCptdGm7pDs3eGTcBg=";
preConfigure = ''
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
'';
nativeBuildInputs = with pkgs; [ cargo clang cmake ];
}