Files
nixpkgs/pkgs/development/ocaml-modules/z3/default.nix
T
jopejoe1 1e1cef625b ocamlPackages: swap throws to meta.broken
throws no longer work with the current ci we have in nixpkgs
2025-10-18 22:23:06 +02:00

47 lines
852 B
Nix

{
stdenv,
lib,
ocaml,
findlib,
zarith,
z3,
}:
let
z3-with-ocaml = (
z3.override {
ocamlBindings = true;
inherit ocaml findlib zarith;
}
);
in
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-z3";
inherit (z3-with-ocaml) version;
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p $OCAMLFIND_DESTDIR
cp -r ${z3-with-ocaml.ocaml}/lib/ocaml/${ocaml.version}/site-lib/stublibs $OCAMLFIND_DESTDIR
cp -r ${z3-with-ocaml.ocaml}/lib/ocaml/${ocaml.version}/site-lib/Z3 $OCAMLFIND_DESTDIR/z3
runHook postInstall
'';
nativeBuildInputs = [ findlib ];
propagatedBuildInputs = [
z3-with-ocaml.lib
zarith
];
strictDeps = true;
meta = z3.meta // {
description = "Z3 Theorem Prover (OCaml API)";
broken = lib.versionOlder ocaml.version "4.08";
};
}