Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
967 B · 49 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ stdenv, lib, ocaml, findlib, zarith, z3,}:
if lib.versionOlder ocaml.version "4.08" then throw "z3 is not available for OCaml ${ocaml.version}"else
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)"; }; }