From 5d309cc8345b1346ea67be2805b751b107f6617f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 4 Dec 2016 10:55:13 +0000 Subject: [PATCH] ocamlPackages.notty: 0.1.1 -> 0.1.1a (53f5946) --- .../ocaml-modules/notty/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/notty/default.nix b/pkgs/development/ocaml-modules/notty/default.nix index 3178789c3993..b967728d048c 100644 --- a/pkgs/development/ocaml-modules/notty/default.nix +++ b/pkgs/development/ocaml-modules/notty/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildOcaml, fetchFromGitHub, findlib +{ stdenv, buildOcaml, fetchpatch, fetchFromGitHub, findlib, topkg, opam, ocb-stubblr , result, uucp, uuseg, uutf , lwt ? null }: @@ -7,7 +7,7 @@ with stdenv.lib; let withLwt = lwt != null; in buildOcaml rec { - version = "0.1.1"; + version = "0.1.1a"; name = "notty"; minimumSupportedOcamlVersion = "4.02"; @@ -15,18 +15,23 @@ buildOcaml rec { src = fetchFromGitHub { owner = "pqwy"; repo = "notty"; - rev = "v${version}"; - sha256 = "0bw3bq8z2y1rhc20zn13s78sazywyzpg8nmyjch33p7ypxfglf01"; + rev = "53f5946653490fce980dc5d8cadf8b122cff4f19"; + sha256 = "0qmwb1hrp04py2i5spy0yd6c5jqxyss3wzvlkgxyl9r07kvsx6xf"; }; - buildInputs = [ findlib ]; + patches = [ (fetchpatch { + url = https://github.com/dbuenzli/notty/commit/b0e12930acc26d030a74d6d63d622ae220b12c92.patch; + sha256 = "0pklplbnjbsjriqj73pc8fsadg404px534w7zknz2617zb44m6x6"; + })]; + + buildInputs = [ findlib opam topkg ocb-stubblr ]; propagatedBuildInputs = [ result uucp uuseg uutf ] ++ - optional withLwt [ lwt ]; + optional withLwt lwt; - configureFlags = [ "--enable-unix" ] ++ - (if withLwt then ["--enable-lwt"] else ["--disable-lwt"]); + buildPhase = topkg.buildPhase + + " --with-lwt ${if withLwt then "true" else "false"}"; - configurePhase = "./configure --prefix $out $configureFlags"; + inherit (topkg) installPhase; meta = { inherit (src.meta) homepage;