@@ -1,24 +1,26 @@
1−{stdenv, fetchurl, ncurses, libevent, pkgconfig}:
1+{ stdenv, fetchurl, ncurses, libevent, pkgconfig }:
22
33stdenv.mkDerivation rec {
4− pname = "tmux";
5− version = "1.9a";
6− name = "${pname}-${version}";
4+ name = "tmux-2.0";
75
86 src = fetchurl {
9− url = "mirror://sourceforge/${pname}/${name}.tar.gz";
10− sha256 = "1x9k4wfd4l5jg6fh7xkr3yyilizha6ka8m5b1nr0kw8wj0mv5qy5";
7+ url = "mirror://sourceforge/tmux/${name}.tar.gz";
8+ sha256 = "0qnkda8kb747vmbldjpb23ksv9pq3s65xhh1ja5rdsmh8r24npvr";
119 };
1210
1311 nativeBuildInputs = [ pkgconfig ];
1412
1513 buildInputs = [ ncurses libevent ];
1614
17− postInstall =
18− ''
19− mkdir -p $out/etc/bash_completion.d
20− cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux
21− '';
15+ configureFlags = [
16+ "--sysconfdir=/etc"
17+ "--localstatedir=/var"
18+ ];
19+
20+ postInstall = ''
21+ mkdir -p $out/etc/bash_completion.d
22+ cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux
23+ '';
2224
2325 meta = {
2426 homepage = http://tmux.sourceforge.net/;