nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 rustPlatform,
6 llvmPackages_19,
7 libffi,
8 zlib,
9 libxml2,
10}:
11
12rustPlatform.buildRustPackage rec {
13 pname = "qir-runner";
14 version = "0.8.3";
15
16 src = fetchFromGitHub {
17 owner = "qir-alliance";
18 repo = "qir-runner";
19 tag = "v${version}";
20 hash = "sha256-k93I/DE8Jx0DbloBVNhKKay/L26H5TPX5yvkHKe/yBg=";
21 };
22
23 nativeBuildInputs = [ llvmPackages_19.llvm ];
24 buildInputs = [
25 libffi
26 zlib
27 libxml2
28 ];
29
30 cargoHash = "sha256-U/9oDOPhlSL1ViW1n5C4MWRvUvU4c/cuATLNIx7FkiM=";
31
32 meta = {
33 description = "QIR bytecode runner to assist with QIR development and validation";
34 mainProgram = "qir-runner";
35 homepage = "https://qir-alliance.github.io/qir-runner";
36 license = lib.licenses.mit;
37 maintainers = [ lib.maintainers.bbenno ];
38 # llvm-sys crate locates llvm by calling llvm-config
39 # which is not available when cross compiling
40 broken = stdenv.buildPlatform != stdenv.hostPlatform;
41 };
42}