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

40 lines
1.2 KiB
Nix
Raw Normal View History

2016-12-04 10:23:03 +00:00
{ stdenv, fetchzip, fetchpatch, ocaml, findlib, ocamlbuild, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re
}:
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
2014-06-08 11:12:27 +01:00
2016-05-30 14:55:30 +01:00
stdenv.mkDerivation rec {
pname = "tyxml";
2016-12-04 10:23:03 +00:00
version = "4.0.1";
name = "ocaml${ocaml.version}-${pname}-${version}";
2014-06-08 11:12:27 +01:00
2016-12-04 10:23:03 +00:00
src = fetchzip {
2016-05-30 14:55:30 +01:00
url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
2016-12-04 10:23:03 +00:00
sha256 = "1mwkjvl78gvw7pvql5qp64cfjjca6aqsb04999qkllifyicaaq8y";
};
patches = [ (fetchpatch {
url = https://github.com/dbuenzli/tyxml/commit/a2bf5ccc0b6e684e7b81274ff19df8d72e2def8d.diff;
sha256 = "11sidgiwz3zqw815vlslbfzb456z0lndkh425mlmvnmck4d2v2i3";
})];
2014-06-08 11:12:27 +01:00
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
2016-05-30 14:55:30 +01:00
propagatedBuildInputs = [uutf re ppx_tools markup];
2014-06-08 11:12:27 +01:00
createFindlibDestdir = true;
2016-05-30 14:55:30 +01:00
configureFlags = "--enable-syntax";
2014-09-30 05:25:31 +01:00
meta = with stdenv.lib; {
2014-06-08 11:12:27 +01:00
homepage = http://ocsigen.org/tyxml/;
description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";
2014-09-30 05:25:31 +01:00
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
2014-09-30 05:25:31 +01:00
maintainers = with maintainers; [
gal_bolle vbgl
2014-06-08 11:12:27 +01:00
];
};
2014-09-06 09:44:20 +01:00
}