ber-metaocaml: make useX11 be a parameter rather than a let-binding

This allows callers to choose the value of useX11 themselves, for
example in config.nix.
This commit is contained in:
Adam Joseph
2022-05-24 18:09:50 +02:00
committed by Vincent Laporte
parent 5ce6597eca
commit 4b8488f72a
@@ -2,10 +2,10 @@
, ncurses
, libX11, xorgproto, buildEnv
, fetchpatch
, useX11 ? stdenv.hostPlatform.isx86
}:
let
useX11 = stdenv.hostPlatform.isx86;
x11deps = [ libX11 xorgproto ];
inherit (lib) optionals;