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,
async ? null, lwt ? null, camlp4}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
in
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
stdenv.mkDerivation {
name = "ocaml-cstruct-1.6.0";