Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
978 B
Nix
Raw Permalink Normal View History

2025-02-20 10:41:05 +01:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
llvmPackages_19,
libffi,
zlib,
libxml2,
}:
rustPlatform.buildRustPackage rec {
pname = "qir-runner";
2025-07-12 01:55:48 +00:00
version = "0.8.3";
2025-02-20 10:41:05 +01:00
src = fetchFromGitHub {
owner = "qir-alliance";
repo = "qir-runner";
tag = "v${version}";
2025-07-12 01:55:48 +00:00
hash = "sha256-k93I/DE8Jx0DbloBVNhKKay/L26H5TPX5yvkHKe/yBg=";
2025-02-20 10:41:05 +01:00
};
nativeBuildInputs = [ llvmPackages_19.llvm ];
buildInputs = [
libffi
zlib
libxml2
];
2025-07-12 01:55:48 +00:00
cargoHash = "sha256-U/9oDOPhlSL1ViW1n5C4MWRvUvU4c/cuATLNIx7FkiM=";
2025-02-20 10:41:05 +01:00
meta = {
description = "QIR bytecode runner to assist with QIR development and validation";
mainProgram = "qir-runner";
homepage = "https://qir-alliance.github.io/qir-runner";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.bbenno ];
# llvm-sys crate locates llvm by calling llvm-config
# which is not available when cross compiling
broken = stdenv.buildPlatform != stdenv.hostPlatform;
};
}