summary refs log tree commit diff
path: root/pkgs/tools/text/groff/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/groff/default.nix')
-rw-r--r--pkgs/tools/text/groff/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix
index 90c5ef0ba819..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 = {
@@ -25,6 +32,7 @@ stdenv.mkDerivation rec {
     homepage = "http://www.gnu.org/software/groff/";
     description = "GNU Troff, a typesetting package that reads plain text and produces formatted output";
     license = "GPLv3+";
+    platforms = stdenv.lib.platforms.all;
 
     longDescription = ''
       groff is the GNU implementation of troff, a document formatting