1 {stdenv, lib, fetchurl, ocaml, findlib, ounit}:
3 # https://github.com/bmeurer/ocamlnat/issues/3
4 assert lib.versionOlder ocaml.version "4";
6 stdenv.mkDerivation rec {
11 url = "http://benediktmeurer.de/files/source/${pname}-${version}.tar.bz2";
12 sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1";
15 nativeBuildInputs = [ocaml findlib ];
16 checkInputs = [ ounit ];
20 prefixKey = "--prefix ";
26 createFindlibDestdir = true;
29 description = "OCaml native toplevel";
30 homepage = "http://benediktmeurer.de/ocamlnat/";
31 license = lib.licenses.qpl;
33 The ocamlnat project provides a new native code OCaml toplevel
34 ocamlnat, which is mostly compatible to the byte code toplevel ocaml,
35 but up to 100 times faster. It is based on the optimizing native code
36 compiler, the native runtime and an earlier prototype by Alain
37 Frisch. It is build upon Just-In-Time techniques and currently
38 supports Unix-like systems (i.e. Linux, BSD or macOS) running on
39 x86 or x86-64 processors. Support for additional architectures and
40 operating systems is planned, but not yet available.
42 inherit (ocaml.meta) platforms;
44 lib.maintainers.maggesi