Commit a06e854f authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

ocamlPackages.cmdliner_1_1: disable for OCaml < 4.08

parent ab83b524
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
{ 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)" ];