mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
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
|
||||
, 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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user