diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-12-10 19:59:56 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-12-17 17:46:46 +0000 |
commit | 585b741cb72f34912b07a5234057dce47550b0eb (patch) | |
tree | 078e82071cc565e48983d351ec0e1ba794b90cf8 /pkgs/development/compilers/ocaml | |
parent | b5f580fa2e146c9f326bd64938099a4b5c848a9c (diff) | |
download | nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar.gz nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar.bz2 nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar.lz nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar.xz nixlib-585b741cb72f34912b07a5234057dce47550b0eb.tar.zst nixlib-585b741cb72f34912b07a5234057dce47550b0eb.zip |
ocaml: fix build when X11 is not available
Diffstat (limited to 'pkgs/development/compilers/ocaml')
-rw-r--r-- | pkgs/development/compilers/ocaml/generic.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index 1ed6d2c6db22..d1ee43c9152e 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -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; |