ocamlPackages.octavius: 0.2.0 -> 1.2.2
This commit is contained in:
parent
218d6c37c8
commit
73d9da471b
|
@ -1,24 +1,25 @@
|
||||||
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:
|
||||||
|
|
||||||
if !lib.versionAtLeast ocaml.version "4.03"
|
buildDunePackage rec {
|
||||||
then throw "octavius is not available for OCaml ${ocaml.version}" else
|
pname = "octavius";
|
||||||
|
version = "1.2.2";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
src = fetchFromGitHub {
|
||||||
name = "ocaml${ocaml.version}-octavius-0.2.0";
|
owner = "ocaml-doc";
|
||||||
src = fetchurl {
|
repo = "octavius";
|
||||||
url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
|
rev = "v${version}";
|
||||||
sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
|
sha256 = "sha256-/S6WpIo1c5J9uM3xgtAM/elhnsl0XimnIFsKy3ootbA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
minimumOCamlVersion = "4.03";
|
||||||
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
||||||
|
|
||||||
inherit (topkg) buildPhase installPhase;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Ocamldoc comment syntax parser";
|
description = "Ocamldoc comment syntax parser";
|
||||||
homepage = "https://github.com/ocaml-doc/octavius";
|
homepage = "https://github.com/ocaml-doc/octavius";
|
||||||
license = lib.licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = [ lib.maintainers.vbgl ];
|
maintainers = with maintainers; [ vbgl ];
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue