Merge pull request #213102 from vbgl/ocaml-mdx-2.2.1

ocamlPackages.mdx: 2.1.0 → 2.2.1

authored by Weijia Wang and committed by GitHub 5d5aa128 6b815fc6

+10 -14
+10 -14
pkgs/development/ocaml-modules/mdx/default.nix
··· 1 - { lib, fetchFromGitHub, buildDunePackage, ocaml 1 + { lib, fetchurl, buildDunePackage, ocaml 2 2 , alcotest 3 - , astring, cmdliner, cppo, fmt, logs, ocaml-version, odoc-parser, ocaml_lwt, re, result, csexp 4 - , pandoc 3 + , astring, cppo, fmt, logs, ocaml-version, odoc-parser, lwt, re, csexp 5 4 , gitUpdater 6 5 }: 7 6 8 7 buildDunePackage rec { 9 8 pname = "mdx"; 10 - version = "2.1.0"; 9 + version = "2.2.1"; 11 10 12 11 minimalOCamlVersion = "4.08"; 12 + duneVersion = "3"; 13 13 14 - src = fetchFromGitHub { 15 - owner = "realworldocaml"; 16 - repo = pname; 17 - rev = version; 18 - hash = "sha256-p7jmksltgfLFTSkPxMuJWJexLq2VvPWT/DJtDveOL/A="; 14 + src = fetchurl { 15 + url = "https://github.com/realworldocaml/mdx/releases/download/${version}/mdx-${version}.tbz"; 16 + hash = "sha256-8J7XM/5EYWBfApdzdIpjU9Ablb5l65hrzOF9bdr1Cdg="; 19 17 }; 20 18 21 19 nativeBuildInputs = [ cppo ]; 22 - buildInputs = [ cmdliner ]; 23 - propagatedBuildInputs = [ astring fmt logs result csexp ocaml-version odoc-parser re ]; 24 - nativeCheckInputs = [ alcotest ocaml_lwt pandoc ]; 20 + propagatedBuildInputs = [ astring fmt logs csexp ocaml-version odoc-parser re ]; 21 + nativeCheckInputs = [ alcotest lwt ]; 25 22 26 - # Check fails with cmdliner ≥ 1.1 27 - doCheck = false; 23 + doCheck = true; 28 24 29 25 outputs = [ "bin" "lib" "out" ]; 30 26