3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ocamlnat/default.nix
davidak 3270aa896b replace "Mac OS X" and "OS X" with "macOS"
as it is the official name since 2016

https://en.wikipedia.org/wiki/Macintosh_operating_systems#Desktop

exception are parts refering to older versions of macOS like

"GUI support for Mac OS X 10.6 - 10.12. Note that Emacs 23 and later [...]"
2017-08-07 21:41:30 +02:00

45 lines
1.3 KiB
Nix

{stdenv, lib, fetchurl, ocaml, findlib, ounit}:
# https://github.com/bmeurer/ocamlnat/issues/3
assert lib.versionOlder ocaml.version "4";
stdenv.mkDerivation rec {
name = "ocamlnat-${version}";
version = "0.1.1";
src = fetchurl {
url = "http://benediktmeurer.de/files/source/${name}.tar.bz2";
sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1";
};
buildInputs = [ocaml findlib ounit];
prefixKey = "--prefix ";
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
description = "OCaml native toplevel";
homepage = http://benediktmeurer.de/ocamlnat/;
license = stdenv.lib.licenses.qpl;
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
supports Unix-like systems (i.e. Linux, BSD or macOS) running on
x86 or x86-64 processors. Support for additional architectures and
operating systems is planned, but not yet available.
'';
platforms = ocaml.meta.platforms or [];
maintainers = [
stdenv.lib.maintainers.z77z
];
};
}