ocamlPackages.cmdliner_1_1: init at 1.1.1

Add the latest version of cmdliner. This release broke many packages and
have more constraining dependencies so the previous version cannot be
removed from nixpkgs for now.

The previous version is still available as ocamlPackages.cmdliner_1_0
and ocamlPackages.cmdliner points to it for now.

+39 -1
+32
pkgs/development/ocaml-modules/cmdliner/1_1.nix
···
··· 1 + { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "cmdliner"; 5 + version = "1.1.1"; 6 + 7 + src = fetchurl { 8 + url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; 9 + sha256 = "sha256-oa6Hw6eZQO+NHdWfdED3dtHckm4BmEbdMiAuRkYntfs="; 10 + }; 11 + 12 + minimalOCamlVersion = "4.08"; 13 + nativeBuildInputs = [ ocaml ]; 14 + 15 + makeFlags = [ "PREFIX=$(out)" ]; 16 + installTargets = "install install-doc"; 17 + installFlags = [ 18 + "LIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/${pname}" 19 + "DOCDIR=$(out)/share/doc/${pname}" 20 + ]; 21 + postInstall = '' 22 + mv $out/lib/ocaml/${ocaml.version}/site-lib/${pname}/{opam,${pname}.opam} 23 + ''; 24 + 25 + meta = with lib; { 26 + homepage = "https://erratique.ch/software/cmdliner"; 27 + description = "An OCaml module for the declarative definition of command line interfaces"; 28 + license = licenses.isc; 29 + inherit (ocaml.meta) platforms; 30 + maintainers = [ maintainers.vbgl ]; 31 + }; 32 + }
pkgs/development/ocaml-modules/cmdliner/default.nix pkgs/development/ocaml-modules/cmdliner/1_0.nix
+7 -1
pkgs/top-level/ocaml-packages.nix
··· 177 178 cil = callPackage ../development/ocaml-modules/cil { }; 179 180 - cmdliner = callPackage ../development/ocaml-modules/cmdliner { }; 181 182 cohttp = callPackage ../development/ocaml-modules/cohttp { }; 183
··· 177 178 cil = callPackage ../development/ocaml-modules/cil { }; 179 180 + cmdliner_1_0 = callPackage ../development/ocaml-modules/cmdliner/1_0.nix { }; 181 + 182 + cmdliner_1_1 = callPackage ../development/ocaml-modules/cmdliner/1_1.nix { }; 183 + 184 + # The 1.1.0 release broke a lot of packages and is not compatible with 185 + # OCaml < 4.08. 186 + cmdliner = cmdliner_1_0; 187 188 cohttp = callPackage ../development/ocaml-modules/cohttp { }; 189