ocamlPackages.xml-light: 2.4 → 2.5
This commit is contained in:
parent
5d1eee6cf0
commit
0161dab815
|
@ -1,35 +1,20 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, gitUpdater }:
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, fetchurl
|
||||||
|
}:
|
||||||
|
|
||||||
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
buildDunePackage rec {
|
||||||
"xml-light is not available for OCaml ${ocaml.version}"
|
pname = "xml-light";
|
||||||
|
version = "2.5";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
duneVersion = "3";
|
||||||
pname = "ocaml${ocaml.version}-xml-light";
|
minimalOCamlVersion = "4.03";
|
||||||
version = "2.4";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "ncannasse";
|
url = "https://github.com/ncannasse/xml-light/releases/download/${version}/xml-light-${version}.tbz";
|
||||||
repo = "xml-light";
|
hash = "sha256-9YwrPbcK0boICw0wauMvgsy7ldq7ksWZzcRn0eROAD0=";
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-2txmkl/ZN5RGaLQJmr+orqwB4CbFk2RpLJd4gr7kPiE=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ];
|
|
||||||
|
|
||||||
strictDeps = true;
|
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
make install_ocamlfind
|
|
||||||
mkdir -p $out/share
|
|
||||||
cp -vai doc $out/share/
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = gitUpdater { };
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Minimal Xml parser and printer for OCaml";
|
description = "Minimal Xml parser and printer for OCaml";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -42,6 +27,5 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "http://tech.motion-twin.com/xmllight.html";
|
homepage = "http://tech.motion-twin.com/xmllight.html";
|
||||||
license = lib.licenses.lgpl21;
|
license = lib.licenses.lgpl21;
|
||||||
maintainers = [ lib.maintainers.romildo ];
|
maintainers = [ lib.maintainers.romildo ];
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue