diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2019-04-19 14:14:47 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2019-04-28 17:42:36 +0200 |
commit | 2406c06ae0b3717c7b95c480900647bda4c42fde (patch) | |
tree | 986736d235f155d19f96e2a8dc3c9b236722d112 /pkgs/development/ocaml-modules/tyxml | |
parent | 61b53f40711efb8d0f76b8b69a3a9385e33094ec (diff) | |
download | nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar.gz nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar.bz2 nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar.lz nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar.xz nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.tar.zst nixlib-2406c06ae0b3717c7b95c480900647bda4c42fde.zip |
ocamlPackages.tyxml: 4.2.0 -> 4.3.0
ocamlPackages.eliom: 6.4.0 -> 6.7.0 ocamlPackages.js_of_ocaml: 3.2.1 -> 3.3.0
Diffstat (limited to 'pkgs/development/ocaml-modules/tyxml')
-rw-r--r-- | pkgs/development/ocaml-modules/tyxml/default.nix | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/pkgs/development/ocaml-modules/tyxml/default.nix b/pkgs/development/ocaml-modules/tyxml/default.nix index 0a8947f3324a..94bcdb45f328 100644 --- a/pkgs/development/ocaml-modules/tyxml/default.nix +++ b/pkgs/development/ocaml-modules/tyxml/default.nix @@ -1,34 +1,20 @@ -{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, markup, ppx_tools_versioned, re -, withP4 ? true -, camlp4 ? null -}: +{ lib, buildDunePackage, fetchurl, re, uutf }: -assert stdenv.lib.versionAtLeast ocaml.version "4.02"; - -stdenv.mkDerivation rec { +buildDunePackage rec { pname = "tyxml"; - version = "4.2.0"; - name = "ocaml${ocaml.version}-${pname}-${version}"; + version = "4.3.0"; - src = fetchzip { - url = "https://github.com/ocsigen/tyxml/archive/${version}.tar.gz"; - sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8"; + src = fetchurl { + url = "https://github.com/ocsigen/tyxml/releases/download/${version}/tyxml-${version}.tbz"; + sha256 = "1hxzppfvsdls2y8qiwvz31hmffzh2hgglf01am1vzf2f31mxf6vf"; }; - 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; { + meta = with 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 ]; |