blockstream-electrs/package.nix

19 lines
442 B
Nix
Raw Normal View History

2023-08-12 15:58:23 +00:00
{ pkgs ? import <nixpkgs> { } }:
2023-08-12 15:55:44 +00:00
2023-08-12 16:00:13 +00:00
let
productVersion = "0.4.1";
productName = "blockstream-electrs";
in
2023-08-12 15:58:58 +00:00
pkgs.rustPlatform.buildRustPackage {
2023-08-12 15:55:44 +00:00
name = "${productName}";
version = "${productVersion}";
src = lib.cleanSource ./.;
cargoSha256 = "sha256-d84QNj9SIRUwtlsa9sdYKuYf0oCptdGm7pDs3eGTcBg=";
preConfigure = ''
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
'';
nativeBuildInputs = [ cargo clang cmake ];
}