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

35 lines
990 B
Nix
Raw Normal View History

2018-02-01 12:59:53 -08:00
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camlp4, uutf, markup, ppx_tools_versioned, re
2016-12-04 02:23:03 -08:00
}:
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
2014-06-08 03:12:27 -07:00
2016-05-30 06:55:30 -07:00
stdenv.mkDerivation rec {
pname = "tyxml";
2018-02-01 12:59:53 -08:00
version = "4.2.0";
2016-12-04 02:23:03 -08:00
name = "ocaml${ocaml.version}-${pname}-${version}";
2014-06-08 03:12:27 -07:00
2016-12-04 02:23:03 -08:00
src = fetchzip {
2016-05-30 06:55:30 -07:00
url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
2018-02-01 12:59:53 -08:00
sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8";
2016-12-04 02:23:03 -08:00
};
2018-02-01 12:59:53 -08:00
buildInputs = [ ocaml findlib ocamlbuild camlp4 ppx_tools_versioned markup ];
2014-06-08 03:12:27 -07:00
2018-02-01 12:59:53 -08:00
propagatedBuildInputs = [ uutf re ];
2014-06-08 03:12:27 -07:00
createFindlibDestdir = true;
2016-05-30 06:55:30 -07:00
configureFlags = "--enable-syntax";
2014-09-29 21:25:31 -07:00
meta = with stdenv.lib; {
2014-06-08 03:12:27 -07: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-29 21:25:31 -07:00
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
2014-09-29 21:25:31 -07:00
maintainers = with maintainers; [
gal_bolle vbgl
2014-06-08 03:12:27 -07:00
];
};
2014-09-06 01:44:20 -07:00
}