Skip to content

Commit

Permalink
gtirb-semantics: add libllvm back to python runtime PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Feb 25, 2024
1 parent 065a1e0 commit 067efe5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gtirb/gtirb-semantics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ let
'';
};

pth = makePythonPth python3Packages "gtirb-semantics" [ protobuf ];
libllvm = llvmPackages.libllvm;
# debug-gts needs llvm-mc at runtime
pth = makePythonPth python3Packages "gtirb-semantics" [ protobuf libllvm ];
python' = python3Packages.python.withPackages
(p: [ pth python-gtirb ]);

in
buildDunePackage {
pname = "gtirb_semantics";
Expand All @@ -41,8 +42,8 @@ buildDunePackage {
sha256 = "sha256-Y0nFoCCFFcHhyb3lsOYkA4qMT03eElmaMdVeuCnMMHs=";
};

buildInputs = [ python' asli ctypes ocaml-protoc-plugin yojson llvmPackages.libllvm ];
nativeBuildInputs = [ protobuf ocaml-protoc-plugin llvmPackages.libllvm ];
buildInputs = [ python' asli ctypes ocaml-protoc-plugin yojson libllvm ];
nativeBuildInputs = [ protobuf ocaml-protoc-plugin libllvm ];
propagatedBuildInputs = [ base64 ];

preConfigure = ''
Expand Down

0 comments on commit 067efe5

Please sign in to comment.