2016-09-19 17:00:42 +00:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib, ounit}:
|
2011-12-16 09:35:13 +00:00
|
|
|
|
2016-09-19 17:00:42 +00:00
|
|
|
# https://github.com/bmeurer/ocamlnat/issues/3
|
|
|
|
assert lib.versionOlder ocaml.version "4";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ocamlnat";
|
2016-09-19 17:00:42 +00:00
|
|
|
version = "0.1.1";
|
2011-12-16 09:35:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://benediktmeurer.de/files/source/${pname}-${version}.tar.bz2";
|
2011-12-16 09:35:13 +00:00
|
|
|
sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib ounit];
|
|
|
|
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCaml native toplevel";
|
|
|
|
homepage = http://benediktmeurer.de/ocamlnat/;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.qpl;
|
2011-12-16 09:35:13 +00:00
|
|
|
longDescription = ''
|
|
|
|
The ocamlnat project provides a new native code OCaml toplevel
|
|
|
|
ocamlnat, which is mostly compatible to the byte code toplevel ocaml,
|
|
|
|
but up to 100 times faster. It is based on the optimizing native code
|
|
|
|
compiler, the native runtime and an earlier prototype by Alain
|
|
|
|
Frisch. It is build upon Just-In-Time techniques and currently
|
2017-08-06 22:05:18 +00:00
|
|
|
supports Unix-like systems (i.e. Linux, BSD or macOS) running on
|
2011-12-16 09:35:13 +00:00
|
|
|
x86 or x86-64 processors. Support for additional architectures and
|
|
|
|
operating systems is planned, but not yet available.
|
|
|
|
'';
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2011-12-16 09:35:13 +00:00
|
|
|
maintainers = [
|
2019-10-07 14:44:58 +00:00
|
|
|
stdenv.lib.maintainers.maggesi
|
2011-12-16 09:35:13 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|