Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 47 lines 1.4 kB view raw
1{stdenv, lib, fetchurl, ocaml, findlib, ounit}: 2 3# https://github.com/bmeurer/ocamlnat/issues/3 4assert lib.versionOlder ocaml.version "4"; 5 6stdenv.mkDerivation rec { 7 pname = "ocamlnat"; 8 version = "0.1.1"; 9 10 src = fetchurl { 11 url = "http://benediktmeurer.de/files/source/${pname}-${version}.tar.bz2"; 12 sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1"; 13 }; 14 15 nativeBuildInputs = [ocaml findlib ]; 16 checkInputs = [ ounit ]; 17 18 strictDeps = true; 19 20 prefixKey = "--prefix "; 21 22 doCheck = true; 23 24 checkTarget = "test"; 25 26 createFindlibDestdir = true; 27 28 meta = { 29 description = "OCaml native toplevel"; 30 homepage = "http://benediktmeurer.de/ocamlnat/"; 31 license = lib.licenses.qpl; 32 longDescription = '' 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. 41 ''; 42 inherit (ocaml.meta) platforms; 43 maintainers = [ 44 lib.maintainers.maggesi 45 ]; 46 }; 47}