nixpkgs/pkgs/development/ocaml-modules/xmlm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
929 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
let
pname = "xmlm";
webpage = "https://erratique.ch/software/${pname}";
in
if lib.versionOlder ocaml.version "4.02"
2018-06-04 20:28:12 +02:00
then throw "xmlm is not available for OCaml ${ocaml.version}"
else
2017-10-07 07:15:50 +02:00
stdenv.mkDerivation rec {
2018-06-04 20:28:12 +02:00
name = "ocaml${ocaml.version}-${pname}-${version}";
version = "1.3.0";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
2018-06-04 20:28:12 +02:00
sha256 = "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
strictDeps = true;
2018-06-04 20:28:12 +02:00
inherit (topkg) buildPhase installPhase;
meta = with lib; {
description = "An OCaml streaming codec to decode and encode the XML data format";
2019-09-09 01:38:31 +02:00
homepage = webpage;
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
mainProgram = "xmltrip";
inherit (ocaml.meta) platforms;
};
}