From c17b2144b42a373366b3d82438b64447bb519fdd Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 8 May 2015 05:50:21 -0700 Subject: [PATCH] tmux: 1.9a -> 2.0 --- pkgs/tools/misc/tmux/default.nix | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index 7180665bd3d5..f559c77712af 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -1,24 +1,26 @@ -{stdenv, fetchurl, ncurses, libevent, pkgconfig}: +{ stdenv, fetchurl, ncurses, libevent, pkgconfig }: stdenv.mkDerivation rec { - pname = "tmux"; - version = "1.9a"; - name = "${pname}-${version}"; + name = "tmux-2.0"; src = fetchurl { - url = "mirror://sourceforge/${pname}/${name}.tar.gz"; - sha256 = "1x9k4wfd4l5jg6fh7xkr3yyilizha6ka8m5b1nr0kw8wj0mv5qy5"; + url = "mirror://sourceforge/tmux/${name}.tar.gz"; + sha256 = "0qnkda8kb747vmbldjpb23ksv9pq3s65xhh1ja5rdsmh8r24npvr"; }; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ ncurses libevent ]; - postInstall = - '' - mkdir -p $out/etc/bash_completion.d - cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux - ''; + configureFlags = [ + "--sysconfdir=/etc" + "--localstatedir=/var" + ]; + + postInstall = '' + mkdir -p $out/etc/bash_completion.d + cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux + ''; meta = { homepage = http://tmux.sourceforge.net/;