19 lines
463 B
Nix
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 ];
|
|
} |