mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
build-support/ocaml: remove throwIf usage
This commit is contained in:
parent
de262e96ec
commit
c19f0976a3
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue