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