lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 15.09-beta 54 lines 1.5 kB view raw
1{ stdenv, fetchurl, ocaml, findlib, which, camlp4 }: 2 3let inherit (stdenv.lib) getVersion versionAtLeast; in 4 5assert versionAtLeast (getVersion ocaml) "4.00.0"; 6assert versionAtLeast (getVersion findlib) "1.3.3"; 7 8stdenv.mkDerivation rec { 9 10 name = "bolt-1.4"; 11 12 src = fetchurl { 13 url = "https://forge.ocamlcore.org/frs/download.php/1043/${name}.tar.gz"; 14 sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy"; 15 }; 16 17 buildInputs = [ ocaml findlib which camlp4 ]; 18 19 patchPhase = '' 20 patch myocamlbuild.ml <<EOF 2170,74c70 22< let camlp4of = 23< try 24< let path_bin = Filename.concat (Sys.getenv "PATH_OCAML_PREFIX") "bin" in 25< Filename.concat path_bin "camlp4of" 26< with _ -> "camlp4of" in 27--- 28> let camlp4of = "camlp4of" in 29EOF 30 ''; 31 32 # The custom `configure` script does not expect the --prefix 33 # option. Installation is handled by ocamlfind. 34 dontAddPrefix = true; 35 36 createFindlibDestdir = true; 37 38 buildFlags = "all"; 39 40 doCheck = true; 41 checkTarget = "tests"; 42 43 meta = with stdenv.lib; { 44 homepage = "http://bolt.x9c.fr"; 45 description = "A logging tool for the OCaml language"; 46 longDescription = '' 47 Bolt is a logging tool for the OCaml language. It is inspired by and 48 modeled after the famous log4j logging framework for Java. 49 ''; 50 license = licenses.lgpl3; 51 platforms = ocaml.meta.platforms; 52 maintainers = [ maintainers.jirkamarsik ]; 53 }; 54}