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