aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/notty
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2016-11-03 03:06:14 +0100
committersternenseemann <git@lukasepple.de>2016-11-18 22:52:16 +0100
commit15004268d7af5deecb59424a991995ac4bd70b22 (patch)
tree1718c971591e087a64f931ef3ac3059b80313b67 /pkgs/development/ocaml-modules/notty
parentd1b4358453cf76900cc5b51c0221abdee0eb356e (diff)
ocaml-notty: init at 0.1.1
Diffstat (limited to 'pkgs/development/ocaml-modules/notty')
-rw-r--r--pkgs/development/ocaml-modules/notty/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/notty/default.nix b/pkgs/development/ocaml-modules/notty/default.nix
new file mode 100644
index 000000000000..3178789c3993
--- /dev/null
+++ b/pkgs/development/ocaml-modules/notty/default.nix
@@ -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 ];
+ };
+}