diff options
author | sternenseemann <git@lukasepple.de> | 2016-11-03 03:06:14 +0100 |
---|---|---|
committer | sternenseemann <git@lukasepple.de> | 2016-11-03 14:39:22 +0100 |
commit | 02388e9ba55972f8af428a65d8eb9684ec586dde (patch) | |
tree | b2eedb423e462d659aaf19ef5dc71a0f210ff3c7 /pkgs/development/ocaml-modules/notty | |
parent | 18788cbac7fa912586510ecc2879ade0f20f7229 (diff) | |
download | nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar.gz nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar.bz2 nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar.lz nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar.xz nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.tar.zst nixlib-02388e9ba55972f8af428a65d8eb9684ec586dde.zip |
ocaml-notty: init at 0.1.1
Diffstat (limited to 'pkgs/development/ocaml-modules/notty')
-rw-r--r-- | pkgs/development/ocaml-modules/notty/default.nix | 36 |
1 files changed, 36 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..431004b41b40 --- /dev/null +++ b/pkgs/development/ocaml-modules/notty/default.nix @@ -0,0 +1,36 @@ +{ stdenv, buildOcaml, fetchFromGitHub, findlib +, result, uucp, uuseg, uutf +, withLwt ? true +, lwt ? null }: + +with stdenv.lib; +assert withLwt -> lwt != null; + +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" ] ++ + optional withLwt ["--enable-lwt"]; + configurePhase = "./configure --prefix $out $configureFlags"; + + meta = with stdenv.lib; { + homepage = https://github.com/pqwy/notty/tree/master; + description = "Declarative terminal graphics for OCaml."; + license = licenses.isc; + maintainers = with maintainers; [ sternenseemann ]; + }; +} |