lol
fork

Configure Feed

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

at 22.05-pre 38 lines 1.1 kB view raw
1{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, ocb-stubblr 2, result, uucp, uuseg, uutf 3, lwt ? null }: 4 5with lib; 6 7if !versionAtLeast ocaml.version "4.05" 8then throw "notty is not available for OCaml ${ocaml.version}" 9else 10 11let withLwt = lwt != null; in 12 13stdenv.mkDerivation rec { 14 version = "0.2.2"; 15 name = "ocaml${ocaml.version}-notty-${version}"; 16 17 src = fetchurl { 18 url = "https://github.com/pqwy/notty/releases/download/v${version}/notty-${version}.tbz"; 19 sha256 = "1y3hx8zjri3x50nyiqal5gak1sw54gw3xssrqbj7srinvkdmrz1q"; 20 }; 21 22 buildInputs = [ ocaml findlib ocamlbuild topkg ocb-stubblr ]; 23 propagatedBuildInputs = [ result uucp uuseg uutf ] ++ 24 optional withLwt lwt; 25 26 buildPhase = topkg.buildPhase 27 + " --with-lwt ${boolToString withLwt}"; 28 29 inherit (topkg) installPhase; 30 31 meta = { 32 homepage = "https://github.com/pqwy/notty"; 33 inherit (ocaml.meta) platforms; 34 description = "Declarative terminal graphics for OCaml"; 35 license = licenses.isc; 36 maintainers = with maintainers; [ sternenseemann ]; 37 }; 38}