ocamlPackages.bap: fix build

This commit is contained in:
Vincent Laporte 2022-02-11 09:58:23 +01:00
parent d5050e3274
commit 7b9b38fb44
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
piqi-ocaml uuidm frontc yojson ];
installPhase = ''
runHook preInstall
export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR;
export PATH=$PATH:$out/bin
export CAML_LD_LIBRARY_PATH=''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}$OCAMLFIND_DESTDIR/bap-plugin-llvm/:$OCAMLFIND_DESTDIR/bap/
@ -58,6 +59,7 @@ stdenv.mkDerivation rec {
makeWrapper ${utop}/bin/utop $out/bin/baptop --prefix OCAMLPATH : $OCAMLPATH --prefix PATH : $PATH --add-flags "-ppx ppx-bap -short-paths -require \"bap.top\""
wrapProgram $out/bin/bapbuild --prefix OCAMLPATH : $OCAMLPATH --prefix PATH : $PATH
ln -s $sigs $out/share/bap/sigs.zip
runHook postInstall
'';
disableIda = "--disable-ida";