2011-03-18 06:55:37 +01:00
|
|
|
{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl,
|
|
|
|
fontconfig, freetype, pkgconfig, libXrender }:
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2009-09-10 18:57:47 +02:00
|
|
|
let
|
|
|
|
name = "rxvt-unicode";
|
2011-03-18 06:55:37 +01:00
|
|
|
version = "9.10";
|
2009-09-10 18:57:47 +02:00
|
|
|
n = "${name}-${version}";
|
|
|
|
in
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2009-09-10 18:57:47 +02:00
|
|
|
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 {
|
2011-03-18 06:55:37 +01:00
|
|
|
url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2";
|
|
|
|
sha256 = "1c238f7e545b1a8da81239b826fb2a7d196c73effbcbd211db7a50995a0a067a";
|
2007-10-31 13:17:14 +01:00
|
|
|
};
|
2008-02-17 19:40:53 +01:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
buildInputs =
|
2011-03-18 06:55:37 +01:00
|
|
|
[ libX11 libXt libXft ncurses /* required to build the terminfo file */
|
|
|
|
fontconfig freetype pkgconfig libXrender ]
|
2010-07-28 20:01:17 +02:00
|
|
|
++ stdenv.lib.optional perlSupport perl;
|
2009-06-30 23:45:15 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
configureFlags="${if perlSupport then "--enable-perl" else "--disable-perl"}";
|
|
|
|
export TERMINFO=$out/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
|
2011-03-18 06:55:37 +01:00
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
|
|
|
|
NIX_LDFLAGS="$NIX_LDFLAGS -lfontconfig -lXrender "
|
2010-07-28 20:01:17 +02:00
|
|
|
''
|
|
|
|
# make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
|
|
|
|
+ stdenv.lib.optionalString perlSupport ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/perl5
|
2009-09-10 18:57:47 +02:00
|
|
|
ln -s $out/{lib/urxvt,lib/perl5/site_perl}
|
2010-07-28 20:01:17 +02:00
|
|
|
'';
|
2008-02-17 19:40:53 +01:00
|
|
|
|
2007-10-31 13:17:14 +01:00
|
|
|
meta = {
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "A clone of the well-known terminal emulator rxvt";
|
2009-06-30 23:45:15 +02:00
|
|
|
longDescription = "
|
2010-07-28 20:01:17 +02:00
|
|
|
You should put this into your ~/.bashrc:
|
2009-06-30 23:45:15 +02:00
|
|
|
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
|
|
|
})
|