mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 07:07:33 +00:00
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
|
||||
|
||||
if args ? minimumOCamlVersion &&
|
||||
! lib.versionAtLeast ocaml.version args.minimumOCamlVersion
|
||||
if (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}"
|
||||
else
|
||||
|
||||
@ -29,7 +29,7 @@ stdenv.mkDerivation ({
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
} // args // {
|
||||
} // (builtins.removeAttrs args [ "minimalOCamlVersion" ]) // {
|
||||
|
||||
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user