nixpkgs/pkgs/development/ocaml-modules/tyxml/default.nix
Daniel Schaefer bac4d95aa2 treewide: Change URLs to HTTPS
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them
if there's actual content. Inspired by
https://github.com/NixOS/nixpkgs/issues/60004
2019-04-22 10:19:54 +02:00

38 lines
1 KiB
Nix

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, markup, ppx_tools_versioned, re
, withP4 ? true
, camlp4 ? null
}:
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
stdenv.mkDerivation rec {
pname = "tyxml";
version = "4.2.0";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchzip {
url = "https://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8";
};
buildInputs = [ ocaml findlib ocamlbuild ppx_tools_versioned markup ]
++ stdenv.lib.optional withP4 camlp4;
propagatedBuildInputs = [ uutf re ];
createFindlibDestdir = true;
configureFlags = stdenv.lib.optional withP4 "--enable-syntax";
meta = with stdenv.lib; {
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";
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [
gal_bolle vbgl
];
};
}