From a3cc98019306d017452379899d784a6037a537c1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 11 Jun 2013 11:55:52 +0200 Subject: [PATCH] groff: explicitly disable X11 support in configure to avoid impure builds Without this flag, the configure script will find /usr/X11 on host system and assume that it can build with X11 support. --- pkgs/tools/text/groff/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix index 90c5ef0ba819..6a11882fdc93 100644 --- a/pkgs/tools/text/groff/default.nix +++ b/pkgs/tools/text/groff/default.nix @@ -11,6 +11,13 @@ stdenv.mkDerivation rec { buildInputs = [ ghostscript ]; nativeBuildInputs = [ perl ]; + # Builds running without a chroot environment may detect the presence + # of /usr/X11 in the host system, leading to an impure build of the + # package. To avoid this issue, X11 support is explicitly disabled. + # Note: If we ever want to *enable* X11 support, then we'll probably + # have to pass "--with-appresdir", too. + configureFlags = "--without-x"; + doCheck = true; crossAttrs = {