summary refs log tree commit diff
path: root/pkgs/tools/text/groff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-06-11 11:55:52 +0200
committerPeter Simons <simons@cryp.to>2013-06-11 12:14:49 +0200
commita2680cdc48b47dbd37b1e734452b3df3bb3ed8a9 (patch)
treebcd8782f61cfbdd200729a9ed7e17c8498a665cf /pkgs/tools/text/groff
parentf06f6955bdc4300f439d594edfcb1b51d517a72e (diff)
downloadnixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar.gz
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar.bz2
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar.lz
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar.xz
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.tar.zst
nixlib-a2680cdc48b47dbd37b1e734452b3df3bb3ed8a9.zip
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.
Diffstat (limited to 'pkgs/tools/text/groff')
-rw-r--r--pkgs/tools/text/groff/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix
index a4ca140b1153..f4d3169f2fae 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 = {