build-support.ocaml.dune: handle minimalOCamlVersion typo
This commit is contained in:
parent
a8aa34c80a
commit
15807923f9
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
let Dune = if args.useDune2 or false then dune_2 else dune_1; in
|
let Dune = if args.useDune2 or false then dune_2 else dune_1; in
|
||||||
|
|
||||||
if args ? minimumOCamlVersion &&
|
if (args ? minimumOCamlVersion && ! lib.versionAtLeast ocaml.version args.minimumOCamlVersion) ||
|
||||||
! lib.versionAtLeast ocaml.version args.minimumOCamlVersion
|
(args ? minimalOCamlVersion && ! lib.versionAtLeast ocaml.version args.minimalOCamlVersion)
|
||||||
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation ({
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
} // args // {
|
} // (builtins.removeAttrs args [ "minimalOCamlVersion" ]) // {
|
||||||
|
|
||||||
name = "ocaml${ocaml.version}-${pname}-${version}";
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue