ocaml: fix build when X11 is not available

This commit is contained in:
Vincent Laporte 2018-12-10 19:59:56 +00:00 committed by Vincent Laporte
parent b5f580fa2e
commit 585b741cb7

View File

@ -24,11 +24,13 @@ let
name = "ocaml${optionalString flambdaSupport "+flambda"}-${version}";
in
stdenv.mkDerivation (args // rec {
let
x11env = buildEnv { name = "x11env"; paths = [libX11 xproto]; };
x11lib = x11env + "/lib";
x11inc = x11env + "/include";
in
stdenv.mkDerivation (args // rec {
inherit name;
inherit version;