ocaml-cstruct: assert minimal OCaml version (4.01)

This commit is contained in:
Vincent Laporte 2015-06-01 22:35:34 +02:00
parent 2c9f03ff81
commit e361e700e1

View File

@ -1,9 +1,7 @@
{stdenv, writeText, fetchurl, ocaml, ocplib-endian, sexplib, findlib, {stdenv, writeText, fetchurl, ocaml, ocplib-endian, sexplib, findlib,
async ? null, lwt ? null, camlp4}: async ? null, lwt ? null, camlp4}:
let assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
ocaml_version = (builtins.parseDrvName ocaml.name).version;
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml-cstruct-1.6.0"; name = "ocaml-cstruct-1.6.0";