From 4b8488f72ac9f6cd964c83c2b1a9d273dc645b5b Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 20 May 2022 15:39:43 -0700 Subject: [PATCH] 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. --- pkgs/development/compilers/ocaml/ber-metaocaml.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ocaml/ber-metaocaml.nix b/pkgs/development/compilers/ocaml/ber-metaocaml.nix index edb3c2e385f65..0825c2db66031 100644 --- a/pkgs/development/compilers/ocaml/ber-metaocaml.nix +++ b/pkgs/development/compilers/ocaml/ber-metaocaml.nix @@ -2,10 +2,10 @@ , ncurses , libX11, xorgproto, buildEnv , fetchpatch +, useX11 ? stdenv.hostPlatform.isx86 }: let - useX11 = stdenv.hostPlatform.isx86; x11deps = [ libX11 xorgproto ]; inherit (lib) optionals;