alt-ergo: split into multiple outputs

This commit is contained in:
Vincent Laporte 2024-08-29 13:06:25 +02:00
parent 8e2b735ee0
commit 6f1d170fe6
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -39,7 +39,17 @@ ocamlPackages.buildDunePackage {
inherit pname version src;
nativeBuildInputs = [ ocamlPackages.menhir ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ];
buildInputs = [ alt-ergo-parsers ] ++ (with ocamlPackages; [ cmdliner dune-site ppxlib ]);
propagatedBuildInputs = [ alt-ergo-parsers ] ++ (with ocamlPackages; [ cmdliner dune-site ppxlib ]);
outputs = [ "bin" "out" ];
installPhase = ''
runHook preInstall
dune install --prefix $bin ${pname}
mkdir -p $out/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib
mv $bin/lib/alt-ergo $out/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/
runHook postInstall
'';
meta = {
description = "High-performance theorem prover and SMT solver";