summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/notty
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-12-04 10:55:13 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-13 06:38:10 +0000
commit5d309cc8345b1346ea67be2805b751b107f6617f (patch)
treea5cd1494fd623f0e52b417168255fee3df3abffd /pkgs/development/ocaml-modules/notty
parent6636dfa845f0290cc8fb7c8c59e9e33d12ef2269 (diff)
downloadnixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar.gz
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar.bz2
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar.lz
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar.xz
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.tar.zst
nixpkgs-5d309cc8345b1346ea67be2805b751b107f6617f.zip
ocamlPackages.notty: 0.1.1 -> 0.1.1a (53f5946)
Diffstat (limited to 'pkgs/development/ocaml-modules/notty')
-rw-r--r--pkgs/development/ocaml-modules/notty/default.nix23
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/notty/default.nix b/pkgs/development/ocaml-modules/notty/default.nix
index 3178789c399..b967728d048 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;