13 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07")
14 "lem is not available for OCaml ${ocaml.version}"
16 stdenv.mkDerivation rec {
17 pname = "ocaml${ocaml.version}-lem";
18 version = "2022-12-10";
20 src = fetchFromGitHub {
21 owner = "rems-project";
24 hash = "sha256-ZQgcuIVRkJS0KtpzjbO4OPHGg6B0TadWA6XpRir30y8=";
27 nativeBuildInputs = [ makeWrapper ocamlbuild findlib ocaml ];
28 propagatedBuildInputs = [ zarith num ];
30 installFlags = [ "INSTALL_DIR=$(out)" ];
32 createFindlibDestdir = true;
35 wrapProgram $out/bin/lem --set LEMLIB $out/share/lem/library
39 homepage = "https://github.com/rems-project/lem";
40 description = "A tool for lightweight executable mathematics";
42 maintainers = with maintainers; [ genericnerdyusername ];
43 license = with licenses; [ bsd3 gpl2 ];
44 platforms = ocaml.meta.platforms;