From 79ddb5d5e066215f52d8514f778bd0e7dc9e203f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 10 Jul 2017 20:15:42 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.topkg:=20requires=20OCaml=20?= =?UTF-8?q?=E2=89=A5=204.01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/topkg/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/topkg/default.nix b/pkgs/development/ocaml-modules/topkg/default.nix index f343eed6b467..fa238a84b35c 100644 --- a/pkgs/development/ocaml-modules/topkg/default.nix +++ b/pkgs/development/ocaml-modules/topkg/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl, ocaml, findlib, ocamlbuild, result, opam }: +if !stdenv.lib.versionAtLeast ocaml.version "4.01" +then throw "topkg is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-topkg-${version}"; version = "0.8.1";