nixpkgs/pkgs/development/ocaml-modules/notty/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2017-12-14 07:36:29 +00:00
{ stdenv, buildOcaml, fetchpatch, fetchFromGitHub, findlib, topkg, ocb-stubblr
2016-11-03 02:06:14 +00:00
, result, uucp, uuseg, uutf
, lwt ? null }:
with stdenv.lib;
let withLwt = lwt != null; in
buildOcaml rec {
version = "0.1.1a";
2016-11-03 02:06:14 +00:00
name = "notty";
minimumSupportedOcamlVersion = "4.02";
src = fetchFromGitHub {
owner = "pqwy";
repo = "notty";
rev = "53f5946653490fce980dc5d8cadf8b122cff4f19";
sha256 = "0qmwb1hrp04py2i5spy0yd6c5jqxyss3wzvlkgxyl9r07kvsx6xf";
2016-11-03 02:06:14 +00:00
};
patches = [ (fetchpatch {
url = https://github.com/dbuenzli/notty/commit/b0e12930acc26d030a74d6d63d622ae220b12c92.patch;
sha256 = "0pklplbnjbsjriqj73pc8fsadg404px534w7zknz2617zb44m6x6";
})];
2017-12-14 07:36:29 +00:00
buildInputs = [ findlib topkg ocb-stubblr ];
2016-11-03 02:06:14 +00:00
propagatedBuildInputs = [ result uucp uuseg uutf ] ++
optional withLwt lwt;
2016-11-03 02:06:14 +00:00
buildPhase = topkg.buildPhase
2017-04-11 17:08:51 +01:00
+ " --with-lwt ${boolToString withLwt}";
2016-11-03 02:06:14 +00:00
inherit (topkg) installPhase;
2016-11-03 02:06:14 +00:00
meta = {
inherit (src.meta) homepage;
description = "Declarative terminal graphics for OCaml";
license = licenses.isc;
maintainers = with maintainers; [ sternenseemann ];
};
}