about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/fmt
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-04-09 18:58:36 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2020-04-10 19:03:52 +0200
commit32e50391008f58bc3594e26bce46f2260cbb8897 (patch)
treed4207863365526628b92b2e5e797ac70933ba096 /pkgs/development/ocaml-modules/fmt
parentbab29617d10061836c4fc09fe0016e8e39a8fa49 (diff)
ocamlPackages.fmt: 0.8.5 → 0.8.6
Diffstat (limited to 'pkgs/development/ocaml-modules/fmt')
-rw-r--r--pkgs/development/ocaml-modules/fmt/default.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/fmt/default.nix b/pkgs/development/ocaml-modules/fmt/default.nix
index 2b1d92c56eddd..5f63be43a5e7c 100644
--- a/pkgs/development/ocaml-modules/fmt/default.nix
+++ b/pkgs/development/ocaml-modules/fmt/default.nix
@@ -1,16 +1,21 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, result, uchar }:
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, seq, stdlib-shims }:
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-fmt-0.8.5";
+if !stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "fmt is not available for OCaml ${ocaml.version}"
+else
+
+stdenv.mkDerivation rec {
+  version = "0.8.6";
+  pname = "ocaml${ocaml.version}-fmt";
 
   src = fetchurl {
-    url = "https://erratique.ch/software/fmt/releases/fmt-0.8.5.tbz";
-    sha256 = "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060";
+    url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
+    sha256 = "1jlw5izgvqw1adzqi87rp0383j0vj52wmacy3rqw87vxkf7a3xin";
   };
 
   nativeBuildInputs = [ ocaml findlib ocamlbuild ];
   buildInputs = [ findlib topkg cmdliner ];
-  propagatedBuildInputs = [ result uchar ];
+  propagatedBuildInputs = [ seq stdlib-shims ];
 
   inherit (topkg) buildPhase installPhase;