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:
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user