13 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07")
14 "lem is not available for OCaml ${ocaml.version}"
18 pname = "ocaml${ocaml.version}-lem";
19 version = "2022-12-10";
21 src = fetchFromGitHub {
22 owner = "rems-project";
25 hash = "sha256-ZQgcuIVRkJS0KtpzjbO4OPHGg6B0TadWA6XpRir30y8=";
34 propagatedBuildInputs = [
39 installFlags = [ "INSTALL_DIR=$(out)" ];
41 createFindlibDestdir = true;
44 wrapProgram $out/bin/lem --set LEMLIB $out/share/lem/library
48 homepage = "https://github.com/rems-project/lem";
49 description = "Tool for lightweight executable mathematics";
51 maintainers = with maintainers; [ genericnerdyusername ];
52 license = with licenses; [
56 platforms = ocaml.meta.platforms;