2008-01-30 22:49:42 +03:00
|
|
|
args: with args;
|
2009-09-10 20:57:47 +04:00
|
|
|
# args.perlSupport: enables perl interpreter support
|
|
|
|
# see man urxvtperl for details
|
|
|
|
let
|
|
|
|
name = "rxvt-unicode";
|
2009-07-01 01:45:15 +04:00
|
|
|
version = "9.06";
|
2009-09-10 20:57:47 +04:00
|
|
|
n = "${name}-${version}";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (rec {
|
2008-02-17 21:40:53 +03:00
|
|
|
|
2009-09-10 20:57:47 +04:00
|
|
|
name = "${n}${if perlSupport then "-with-perl" else ""}";
|
2008-02-17 21:40:53 +03:00
|
|
|
|
2009-09-10 20:57:47 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dist.schmorp.de/rxvt-unicode/Attic/${n}.tar.bz2";
|
2009-07-01 01:45:15 +04:00
|
|
|
sha256 = "8ef9359c01059efd330626c6cd7b082be9bf10587f2b9fe84caa43a84aa576d1";
|
2007-10-31 15:17:14 +03:00
|
|
|
};
|
2008-02-17 21:40:53 +03:00
|
|
|
|
2009-09-10 20:57:47 +04:00
|
|
|
buildInputs = [ libX11 libXt libXft ncurses /* required to build the terminfo file */ ]
|
|
|
|
++ lib.optional perlSupport perl;
|
2009-07-01 01:45:15 +04:00
|
|
|
|
|
|
|
preConfigure=''
|
2009-09-10 20:57:47 +04:00
|
|
|
configureFlags="${if perlSupport then "--enable-perl" else "--disable-perl"}";
|
2009-07-01 01:45:15 +04:00
|
|
|
export TERMINFO=$out/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
|
2009-09-10 20:57:47 +04:00
|
|
|
''
|
|
|
|
# make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
|
|
|
|
+ (if perlSupport then ''
|
|
|
|
ensureDir $out/lib/perl5
|
|
|
|
ln -s $out/{lib/urxvt,lib/perl5/site_perl}
|
|
|
|
'' else "");
|
|
|
|
|
|
|
|
postInstall = ''
|
2009-07-01 01:45:15 +04:00
|
|
|
'';
|
2008-02-17 21:40:53 +03:00
|
|
|
|
2007-10-31 15:17:14 +03:00
|
|
|
meta = {
|
|
|
|
description = "rxvt-unicode is a clone of the well known terminal emulator rxvt.";
|
2009-07-01 01:45:15 +04:00
|
|
|
longDescription = "
|
|
|
|
you should put this into your .bashrc
|
|
|
|
export TERMINFO=~/.nix-profile/share/terminfo
|
|
|
|
";
|
2007-10-31 15:17:14 +03:00
|
|
|
homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
|
|
|
|
};
|
2008-02-17 21:40:53 +03:00
|
|
|
})
|