mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
build-support/ocaml: remove throwIf usage
This commit is contained in:
@@ -19,11 +19,10 @@
|
||||
...
|
||||
}@args:
|
||||
|
||||
lib.throwIf (args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion)
|
||||
"${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||
|
||||
stdenv.mkDerivation
|
||||
(
|
||||
if (args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion) then
|
||||
throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
stdenv.mkDerivation (
|
||||
{
|
||||
|
||||
dontAddStaticConfigureFlags = true;
|
||||
|
||||
Reference in New Issue
Block a user