diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2019-08-23 17:51:41 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2019-08-23 17:51:41 +0000 |
commit | 7cca325b0797da92424b6216e14ed17757b49379 (patch) | |
tree | f7af113e9949bb2e62a17bcb94ee6dbbb6095fd6 /pkgs/development/ocaml-modules/logs | |
parent | a8d3aebdce8a2ffb0134fac33e2e9da18aebeb06 (diff) | |
download | nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar.gz nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar.bz2 nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar.lz nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar.xz nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.tar.zst nixpkgs-7cca325b0797da92424b6216e14ed17757b49379.zip |
ocamlPackages.logs: disable for OCaml < 4.03
Diffstat (limited to 'pkgs/development/ocaml-modules/logs')
-rw-r--r-- | pkgs/development/ocaml-modules/logs/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix index 157beaac4bc..22c4216a88f 100644 --- a/pkgs/development/ocaml-modules/logs/default.nix +++ b/pkgs/development/ocaml-modules/logs/default.nix @@ -5,7 +5,9 @@ let webpage = "https://erratique.ch/software/${pname}"; in -assert stdenv.lib.versionAtLeast ocaml.version "4.01.0"; +if !stdenv.lib.versionAtLeast ocaml.version "4.03" +then throw "logs is not available for OCaml ${ocaml.version}" +else stdenv.mkDerivation rec { name = "ocaml-${pname}-${version}"; |