summary refs log tree commit diff
path: root/pkgs/applications/misc/xterm/default.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-22 14:01:21 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-04-22 14:01:21 +0000
commit2894233ff6172bb69e16766680fcd6e94dfaa0b3 (patch)
treef99a9d6b22dc3194c33a6c27a990c674b3afcbce /pkgs/applications/misc/xterm/default.nix
parenta745097710fe82aaf95144da62229717541e71fe (diff)
downloadnixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar.gz
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar.bz2
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar.lz
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar.xz
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.tar.zst
nixpkgs-2894233ff6172bb69e16766680fcd6e94dfaa0b3.zip
Updating xterm so it releases the effective gid (for setgid to utmp purposes).
svn path=/nixpkgs/trunk/; revision=21239
Diffstat (limited to 'pkgs/applications/misc/xterm/default.nix')
-rw-r--r--pkgs/applications/misc/xterm/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/applications/misc/xterm/default.nix b/pkgs/applications/misc/xterm/default.nix
index c9914319cc0..9f6a8a59e72 100644
--- a/pkgs/applications/misc/xterm/default.nix
+++ b/pkgs/applications/misc/xterm/default.nix
@@ -12,8 +12,19 @@ stdenv.mkDerivation rec {
     --enable-load-vt-fonts --enable-i18n --enable-doublechars --enable-luit
     --enable-mini-luit --with-tty-group=tty";
 
+  # Hack to get xterm built with the feature of releasing a possible setgid of 'utmp',
+  # decided by the sysadmin to allow the xterm reporting to /var/run/utmp
+  # If we used the configure option, that would have affected the xterm installation,
+  # (setgid with the given group set), and at build time the environment even doesn't have
+  # groups, and the builder will end up removing any setgid.
+  postConfigure = ''
+    echo '#define USE_UTMP_SETGID 1'
+  '';
+
   meta = {
     homepage = http://invisible-island.net/xterm;
+    license = "BSD";
+    maintainers = with stdenv.lib.maintainers; [viric];
+    platforms = with stdenv.lib.platforms; linux;
   };
 }
-