ocamlPackages.mdx: use fetchFromGitHub
This commit is contained in:
parent
dbfbaae0fa
commit
100c5989ae
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchurl, buildDunePackage, ocaml
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
||||||
, alcotest
|
, alcotest
|
||||||
, astring, cmdliner, cppo, fmt, logs, ocaml-version, odoc-parser, ocaml_lwt, re, result, csexp
|
, astring, cmdliner, cppo, fmt, logs, ocaml-version, odoc-parser, ocaml_lwt, re, result, csexp
|
||||||
, pandoc}:
|
, pandoc}:
|
||||||
@ -9,9 +9,11 @@ buildDunePackage rec {
|
|||||||
|
|
||||||
minimalOCamlVersion = "4.08";
|
minimalOCamlVersion = "4.08";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/realworldocaml/mdx/releases/download/${version}/mdx-${version}.tbz";
|
owner = "realworldocaml";
|
||||||
sha256 = "sha256-ol1zy8LODDYdcnv/jByE0pnqJ5ujQuMALq3v9y7td/o=";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-p7jmksltgfLFTSkPxMuJWJexLq2VvPWT/DJtDveOL/A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cppo ];
|
nativeBuildInputs = [ cppo ];
|
||||||
|
Loading…
Reference in New Issue
Block a user