diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-03-17 09:23:28 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-03-24 09:45:20 +0100 |
commit | d04990eee6534971b18d3e341c45b84013649fb6 (patch) | |
tree | 6243de29ef806167984ec6bf2b53c3b0f505690b /pkgs/development/ocaml-modules | |
parent | 3cc1ef775d8e5b4d989fe8e3122f2888cd614600 (diff) | |
download | nixpkgs-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.nix | 3 |
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"; |