Skip to content

Commit

Permalink
dune.nix: Include dune version in warning when dune is not supported
Browse files Browse the repository at this point in the history
as dune 1 and dune 2 have different version ranges here
  • Loading branch information
nomeata authored and vbgl committed May 19, 2021
1 parent e62ec73 commit 41b485f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/tools/ocaml/dune/1.nix
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion 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 {
Expand Down

0 comments on commit 41b485f

Please sign in to comment.