dune.nix: Include dune version in warning when dune is not supported
as dune 1 and dune 2 have different version ranges here
This commit is contained in:
parent
e62ec73827
commit
41b485f7c4
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue