ocamlPackages.cmdliner_1_1: disable for OCaml < 4.08

This commit is contained in:
Vincent Laporte 2022-08-11 08:43:27 +02:00 committed by Vincent Laporte
parent ab83b52478
commit a06e854f23

View file

@ -1,5 +1,8 @@
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
"cmdliner 1.1 is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation rec {
pname = "cmdliner";
version = "1.1.1";
@ -9,7 +12,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-oa6Hw6eZQO+NHdWfdED3dtHckm4BmEbdMiAuRkYntfs=";
};
minimalOCamlVersion = "4.08";
nativeBuildInputs = [ ocaml ];
makeFlags = [ "PREFIX=$(out)" ];