summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorkoral <koral att mailoo dott org>2014-09-30 18:59:32 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-10-01 02:09:06 +0100
commitd815b900f40829f463e1a9b034e68b1333e2bf7a (patch)
treea1383c55b4e8f519f89bf5d0eeb780bfd599aa41 /pkgs/tools/misc
parent6acd05f27aab18e740ed0d8cf0e16987d85ab76a (diff)
downloadnixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar.gz
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar.bz2
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar.lz
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar.xz
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.tar.zst
nixlib-d815b900f40829f463e1a9b034e68b1333e2bf7a.zip
tmux: wrapped program to set TERMINFO variable
Closes #4335
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/tmux/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix
index 32f681dabebb..823374771696 100644
--- a/pkgs/tools/misc/tmux/default.nix
+++ b/pkgs/tools/misc/tmux/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, ncurses, libevent, pkgconfig}:
+{stdenv, fetchurl, ncurses, libevent, pkgconfig, makeWrapper}:
 
 stdenv.mkDerivation rec {
   pname = "tmux";
@@ -12,12 +12,13 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ pkgconfig ];
 
-  buildInputs = [ ncurses libevent ];
+  buildInputs = [ ncurses libevent makeWrapper ];
 
   postInstall =
     ''
       mkdir -p $out/etc/bash_completion.d
       cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux
+      wrapProgram $out/bin/tmux --prefix TERMINFO : $out/share/terminfo
     '';
 
   meta = {