ocamlPackages.camlimages_4_2_4: fix build

This commit is contained in:
Vincent Laporte 2022-02-14 11:30:15 +01:00 committed by sterni
parent 30b7f827cb
commit 0250669c66

View file

@ -15,7 +15,8 @@
, ghostscript
}:
assert lib.versionOlder ocaml.version "4.06";
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02" && lib.versionOlder ocaml.version "4.10")
"camlimages 4.2.4 is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-${pname}-${version}";
@ -54,9 +55,9 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
runHook preBuild
runHook preInstall
omake install
runHook postBuild
runHook postInstall
'';
createFindlibDestdir = true;