diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2021-05-19 11:51:35 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-05-19 14:07:20 +0200 |
commit | 41b485f7c4aba8b9f8c1d29387194b09b344085e (patch) | |
tree | 55b30a4cabefda709366764ffe4c5135b45c5ec0 /pkgs/development/tools/ocaml/dune | |
parent | e62ec73827bdf919719cf83c4aa607b18f6ac5ca (diff) | |
download | nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar.gz nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar.bz2 nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar.lz nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar.xz nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.tar.zst nixpkgs-41b485f7c4aba8b9f8c1d29387194b09b344085e.zip |
dune.nix: Include dune version in warning when dune is not supported
as dune 1 and dune 2 have different version ranges here
Diffstat (limited to 'pkgs/development/tools/ocaml/dune')
-rw-r--r-- | pkgs/development/tools/ocaml/dune/1.nix | 2 | ||||
-rw-r--r-- | pkgs/development/tools/ocaml/dune/2.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/ocaml/dune/1.nix b/pkgs/development/tools/ocaml/dune/1.nix index a16b3ab23f2..ad908787911 100644 --- a/pkgs/development/tools/ocaml/dune/1.nix +++ b/pkgs/development/tools/ocaml/dune/1.nix @@ -2,7 +2,7 @@ if !lib.versionAtLeast ocaml.version "4.02" || lib.versionAtLeast ocaml.version "4.12" -then throw "dune is not available for OCaml ${ocaml.version}" +then throw "dune 1 is not available for OCaml ${ocaml.version}" else stdenv.mkDerivation rec { diff --git a/pkgs/development/tools/ocaml/dune/2.nix b/pkgs/development/tools/ocaml/dune/2.nix index f1365792fbc..2acc7e5bdf3 100644 --- a/pkgs/development/tools/ocaml/dune/2.nix +++ b/pkgs/development/tools/ocaml/dune/2.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchurl, ocaml, findlib }: if lib.versionOlder ocaml.version "4.08" -then throw "dune is not available for OCaml ${ocaml.version}" +then throw "dune 2 is not available for OCaml ${ocaml.version}" else stdenv.mkDerivation rec { |