ocaml: fix build when X11 is not available
This commit is contained in:
parent
b5f580fa2e
commit
585b741cb7
@ -24,11 +24,13 @@ let
|
|||||||
name = "ocaml${optionalString flambdaSupport "+flambda"}-${version}";
|
name = "ocaml${optionalString flambdaSupport "+flambda"}-${version}";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation (args // rec {
|
let
|
||||||
|
|
||||||
x11env = buildEnv { name = "x11env"; paths = [libX11 xproto]; };
|
x11env = buildEnv { name = "x11env"; paths = [libX11 xproto]; };
|
||||||
x11lib = x11env + "/lib";
|
x11lib = x11env + "/lib";
|
||||||
x11inc = x11env + "/include";
|
x11inc = x11env + "/include";
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation (args // rec {
|
||||||
|
|
||||||
inherit name;
|
inherit name;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
Loading…
Reference in New Issue
Block a user