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";
|
2010-02-13 18:39:27 +01:00
|
|
|
version = "9.07";
|
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 {
|
2010-02-13 18:39:27 +01:00
|
|
|
url = "http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.07.tar.bz2";
|
|
|
|
sha256 = "18y5mb3cm1gawjm723q5r7yk37s9drzg39kna036i694m2667865";
|
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
|
|
|
})
|