lol
0
fork

Configure Feed

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

at 18.09-beta 42 lines 1.1 kB view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, js_of_ocaml 2, jsooSupport ? true 3}: 4 5with lib; 6 7let param = 8 if versionAtLeast ocaml.version "4.03" 9 then { 10 version = "1.1.0"; 11 sha256 = "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"; 12 } else { 13 version = "0.8.4"; 14 sha256 = "1adm8sc3lkjly99hyi5gqnxas748k7h62ljgn8x423nkn8gyp8dh"; 15 }; 16in 17 18stdenv.mkDerivation { 19 name = "ocaml${ocaml.version}-mtime-${param.version}"; 20 21 src = fetchurl { 22 url = "http://erratique.ch/software/mtime/releases/mtime-${param.version}.tbz"; 23 inherit (param) sha256; 24 }; 25 26 unpackCmd = "tar xjf $src"; 27 28 buildInputs = [ ocaml findlib ocamlbuild topkg ] 29 ++ stdenv.lib.optional jsooSupport js_of_ocaml; 30 31 buildPhase = "${topkg.buildPhase} --with-js_of_ocaml ${boolToString jsooSupport}"; 32 33 inherit (topkg) installPhase; 34 35 meta = { 36 description = "Monotonic wall-clock time for OCaml"; 37 homepage = http://erratique.ch/software/mtime; 38 inherit (ocaml.meta) platforms; 39 maintainers = [ maintainers.vbgl ]; 40 license = licenses.bsd3; 41 }; 42}