Skip to content

Commit 167ca81

Browse files
committed
qir-runner: init at 0.7.5
1 parent 94b00e9 commit 167ca81

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
rustPlatform,
6+
llvmPackages_19,
7+
libffi,
8+
zlib,
9+
libxml2,
10+
}:
11+
12+
rustPlatform.buildRustPackage rec {
13+
pname = "qir-runner";
14+
version = "0.7.5";
15+
16+
src = fetchFromGitHub {
17+
owner = "qir-alliance";
18+
repo = "qir-runner";
19+
tag = "v${version}";
20+
hash = "sha256-65ioZ+7Xo4ocpFFVvwtY6Hn1FKuI48hcAfbAjPnSYEs=";
21+
};
22+
23+
nativeBuildInputs = [ llvmPackages_19.llvm ];
24+
buildInputs = [
25+
libffi
26+
zlib
27+
libxml2
28+
];
29+
30+
useFetchCargoVendor = true;
31+
cargoHash = "sha256-ciQ6TFl+LNBVrIwhCdpzbaQz72W7EC5wj85PW29UV0M=";
32+
33+
meta = {
34+
description = "QIR bytecode runner to assist with QIR development and validation";
35+
mainProgram = "qir-runner";
36+
homepage = "https://qir-alliance.github.io/qir-runner";
37+
license = lib.licenses.mit;
38+
maintainers = [ lib.maintainers.bbenno ];
39+
# llvm-sys crate locates llvm by calling llvm-config
40+
# which is not available when cross compiling
41+
broken = stdenv.buildPlatform != stdenv.hostPlatform;
42+
};
43+
}

0 commit comments

Comments
 (0)