blockstream-electrs/package.nix

15 lines
367 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 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 ];
}