summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-06 17:09:25 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2020-12-06 22:19:42 +0100
commit2830a80142898caddf34632cd18b1c7fa2be5d1b (patch)
treebf8c93837a3d2f6cf42b4e5a7dc24382738e7d36 /pkgs/development/ocaml-modules
parent1f850a06903cb65030c5a846fb5bf7086758dabc (diff)
downloadnixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar.gz
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar.bz2
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar.lz
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar.xz
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.tar.zst
nixpkgs-2830a80142898caddf34632cd18b1c7fa2be5d1b.zip
ocamlPackages.markup: 0.8.2 -> 1.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/markup/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/markup/default.nix b/pkgs/development/ocaml-modules/markup/default.nix
index 8b3525d2634..a8246e1cc7e 100644
--- a/pkgs/development/ocaml-modules/markup/default.nix
+++ b/pkgs/development/ocaml-modules/markup/default.nix
@@ -1,23 +1,26 @@
-{ lib, buildDunePackage, fetchzip, uutf }:
+{ lib, buildDunePackage, fetchzip, ocaml, uchar, uutf, ounit2 }:
 
 buildDunePackage rec {
   pname = "markup";
-  version = "0.8.2";
+  version = "1.0.0";
+
+  useDune2 = true;
 
   src = fetchzip {
     url = "https://github.com/aantron/markup.ml/archive/${version}.tar.gz";
-    sha256 = "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn";
-    };
+    sha256 = "09hkrf9pw6hpb9j06p5bddklpnjwdjpqza3bx2179l970yl67an9";
+  };
+
+  propagatedBuildInputs = [ uchar uutf ];
 
-  propagatedBuildInputs = [ uutf ];
+  checkInputs = [ ounit2 ];
+  doCheck = lib.versionAtLeast ocaml.version "4.04";
 
   meta = with lib; {
     homepage = "https://github.com/aantron/markup.ml/";
     description = "A pair of best-effort parsers implementing the HTML5 and XML specifications";
     license = licenses.mit;
-    maintainers = with maintainers; [
-      gal_bolle
-      ];
+    maintainers = with maintainers; [ gal_bolle ];
   };
 
 }