File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
pkgs/by-name/qi/qir-runner Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments