2023-08-12 16:06:35 +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}";
|
|
|
|
|
2023-08-12 16:08:06 +00:00
|
|
|
src = pkgs.lib.cleanSource ./.;
|
2023-08-12 15:55:44 +00:00
|
|
|
|
|
|
|
cargoSha256 = "sha256-d84QNj9SIRUwtlsa9sdYKuYf0oCptdGm7pDs3eGTcBg=";
|
|
|
|
|
|
|
|
preConfigure = ''
|
2023-08-12 16:05:44 +00:00
|
|
|
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
|
2023-08-12 15:55:44 +00:00
|
|
|
'';
|
2023-08-12 16:00:54 +00:00
|
|
|
nativeBuildInputs = with pkgs; [ cargo clang cmake ];
|
2023-08-12 15:55:44 +00:00
|
|
|
}
|