summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-03-17 09:23:28 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2022-03-24 09:45:20 +0100
commitd04990eee6534971b18d3e341c45b84013649fb6 (patch)
tree6243de29ef806167984ec6bf2b53c3b0f505690b /pkgs/development/ocaml-modules
parent3cc1ef775d8e5b4d989fe8e3122f2888cd614600 (diff)
downloadnixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar.gz
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar.bz2
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar.lz
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar.xz
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.tar.zst
nixpkgs-d04990eee6534971b18d3e341c45b84013649fb6.zip
ocamlPackages.ocaml_libvirt: disable for OCaml ≤ 4.02
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-libvirt/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix b/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix
index b4410981afb..f2336cf88bb 100644
--- a/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix
@@ -1,5 +1,8 @@
 { lib, stdenv, fetchFromGitLab, libvirt, autoreconfHook, pkg-config, ocaml, findlib, perl }:
 
+lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02")
+  "libvirt is not available for OCaml ${ocaml.version}"
+
 stdenv.mkDerivation rec {
   pname = "ocaml-libvirt";
   version = "0.6.1.5";