From e361e700e160679579053574fd6cd9e15878b809 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 1 Jun 2015 22:35:34 +0200 Subject: [PATCH] ocaml-cstruct: assert minimal OCaml version (4.01) --- pkgs/development/ocaml-modules/cstruct/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/cstruct/default.nix b/pkgs/development/ocaml-modules/cstruct/default.nix index d62b9397a733..5b2eebed9e0d 100644 --- a/pkgs/development/ocaml-modules/cstruct/default.nix +++ b/pkgs/development/ocaml-modules/cstruct/default.nix @@ -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";