Merge pull request #20527 from sternenseemann/notty
ocaml-notty: init at 0.1.1
This commit is contained in:
commit
c346326b24
|
@ -0,0 +1,37 @@
|
||||||
|
{ stdenv, buildOcaml, fetchFromGitHub, findlib
|
||||||
|
, result, uucp, uuseg, uutf
|
||||||
|
, lwt ? null }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
let withLwt = lwt != null; in
|
||||||
|
|
||||||
|
buildOcaml rec {
|
||||||
|
version = "0.1.1";
|
||||||
|
name = "notty";
|
||||||
|
|
||||||
|
minimumSupportedOcamlVersion = "4.02";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pqwy";
|
||||||
|
repo = "notty";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0bw3bq8z2y1rhc20zn13s78sazywyzpg8nmyjch33p7ypxfglf01";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ findlib ];
|
||||||
|
propagatedBuildInputs = [ result uucp uuseg uutf ] ++
|
||||||
|
optional withLwt [ lwt ];
|
||||||
|
|
||||||
|
configureFlags = [ "--enable-unix" ] ++
|
||||||
|
(if withLwt then ["--enable-lwt"] else ["--disable-lwt"]);
|
||||||
|
|
||||||
|
configurePhase = "./configure --prefix $out $configureFlags";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
description = "Declarative terminal graphics for OCaml";
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = with maintainers; [ sternenseemann ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -265,6 +265,10 @@ let
|
||||||
lwt = ocaml_lwt;
|
lwt = ocaml_lwt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
notty = callPackage ../development/ocaml-modules/notty {
|
||||||
|
lwt = ocaml_lwt;
|
||||||
|
};
|
||||||
|
|
||||||
ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
|
ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
|
||||||
|
|
||||||
comparelib = callPackage ../development/ocaml-modules/comparelib { };
|
comparelib = callPackage ../development/ocaml-modules/comparelib { };
|
||||||
|
|
Loading…
Reference in New Issue