ocaml: init at 4.08.0+beta1

This commit is contained in:
Vincent Laporte
2019-02-19 09:44:04 +01:00
committed by Vincent Laporte
parent c721be4008
commit 1753b20648
3 changed files with 15 additions and 2 deletions
+4 -2
View File
@@ -41,8 +41,10 @@ stdenv.mkDerivation (args // rec {
};
prefixKey = "-prefix ";
configureFlags = optionals useX11 [ "-x11lib" x11lib
"-x11include" x11inc ]
configureFlags = optionals useX11 (
if stdenv.lib.versionAtLeast version "4.08"
then [ "--x-libraries=${x11lib}" "--x-includes=${x11inc}"]
else [ "-x11lib" x11lib "-x11include" x11inc ])
++ optional flambdaSupport "-flambda"
;