ocamlPackages.mdx: use fetchFromGitHub

This commit is contained in:
José Romildo 2022-10-23 08:07:33 -03:00
parent dbfbaae0fa
commit 100c5989ae

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, buildDunePackage, ocaml
{ lib, fetchFromGitHub, buildDunePackage, ocaml
, alcotest
, astring, cmdliner, cppo, fmt, logs, ocaml-version, odoc-parser, ocaml_lwt, re, result, csexp
, pandoc}:
@ -9,9 +9,11 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/realworldocaml/mdx/releases/download/${version}/mdx-${version}.tbz";
sha256 = "sha256-ol1zy8LODDYdcnv/jByE0pnqJ5ujQuMALq3v9y7td/o=";
src = fetchFromGitHub {
owner = "realworldocaml";
repo = pname;
rev = version;
hash = "sha256-p7jmksltgfLFTSkPxMuJWJexLq2VvPWT/DJtDveOL/A=";
};
nativeBuildInputs = [ cppo ];