Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 ocaml, 6 findlib, 7 ounit, 8}: 9 10# https://github.com/bmeurer/ocamlnat/issues/3 11assert lib.versionOlder ocaml.version "4"; 12 13stdenv.mkDerivation rec { 14 pname = "ocamlnat"; 15 version = "0.1.1"; 16 17 src = fetchurl { 18 url = "http://benediktmeurer.de/files/source/${pname}-${version}.tar.bz2"; 19 sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1"; 20 }; 21 22 nativeBuildInputs = [ 23 ocaml 24 findlib 25 ]; 26 checkInputs = [ ounit ]; 27 28 strictDeps = true; 29 30 prefixKey = "--prefix "; 31 32 doCheck = true; 33 34 checkTarget = "test"; 35 36 createFindlibDestdir = true; 37 38 meta = { 39 description = "OCaml native toplevel"; 40 homepage = "http://benediktmeurer.de/ocamlnat/"; 41 license = lib.licenses.qpl; 42 longDescription = '' 43 The ocamlnat project provides a new native code OCaml toplevel 44 ocamlnat, which is mostly compatible to the byte code toplevel ocaml, 45 but up to 100 times faster. It is based on the optimizing native code 46 compiler, the native runtime and an earlier prototype by Alain 47 Frisch. It is build upon Just-In-Time techniques and currently 48 supports Unix-like systems (i.e. Linux, BSD or macOS) running on 49 x86 or x86-64 processors. Support for additional architectures and 50 operating systems is planned, but not yet available. 51 ''; 52 inherit (ocaml.meta) platforms; 53 maintainers = [ 54 lib.maintainers.maggesi 55 ]; 56 }; 57}