about summary refs log tree commit diff
path: root/pkgs/applications/misc/rxvt_unicode
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2012-12-06 03:23:11 +0100
committeraszlig <aszlig@redmoonstudios.org>2012-12-06 03:30:06 +0100
commitacafaf9b2358ac378c93f0836c8fe48992eb3c5f (patch)
tree00c716452ad0a7c3affe77a1c7b63d5a3bf4b723 /pkgs/applications/misc/rxvt_unicode
parent5b0cd954f1370d04a1dafde1537089f33c3b5f60 (diff)
downloadnixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar.gz
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar.bz2
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar.lz
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar.xz
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.tar.zst
nixlib-acafaf9b2358ac378c93f0836c8fe48992eb3c5f.zip
rxvt-unicode: Add path to terminfo file.
On NixOS, we have set TERMINFO_DIRS to the user environment, so urxvt and curses
programs running within urxvt are able to find the terminfo file. Unfortunately
this isn't the case if you're not using NixOS.

Of course we now no longer need the longDescription, which suggests to issue

export TERMINFO=~/.nix-profile/share/terminfo

... which to my eyes essentially is a workaround. So please correct me when I'm
wrong, but i think it's better if software is working as-is rather than
requiring additional configuration (except if it really makes sense or breaks
purity).

Thanks to Eelis in #nixos for reporting this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications/misc/rxvt_unicode')
-rw-r--r--pkgs/applications/misc/rxvt_unicode/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/applications/misc/rxvt_unicode/default.nix b/pkgs/applications/misc/rxvt_unicode/default.nix
index a1297d64a180..b643b8a658e2 100644
--- a/pkgs/applications/misc/rxvt_unicode/default.nix
+++ b/pkgs/applications/misc/rxvt_unicode/default.nix
@@ -23,7 +23,7 @@ stdenv.mkDerivation (rec {
 
   preConfigure =
     ''
-      configureFlags="${if perlSupport then "--enable-perl" else "--disable-perl"}";
+      configureFlags="--with-terminfo=$out/share/terminfo ${if perlSupport then "--enable-perl" else "--disable-perl"}";
       export TERMINFO=$out/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
       NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
       NIX_LDFLAGS="$NIX_LDFLAGS -lfontconfig -lXrender "
@@ -36,10 +36,6 @@ stdenv.mkDerivation (rec {
 
   meta = {
     description = "A clone of the well-known terminal emulator rxvt";
-    longDescription = "
-      You should put this into your ~/.bashrc:
-      export TERMINFO=~/.nix-profile/share/terminfo
-    ";
     homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
   };
 })