2011-03-18 05:55:37 +00:00
|
|
|
{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl,
|
|
|
|
fontconfig, freetype, pkgconfig, libXrender }:
|
2010-07-28 19:01:17 +01:00
|
|
|
|
2009-09-10 17:57:47 +01:00
|
|
|
let
|
|
|
|
name = "rxvt-unicode";
|
2012-04-02 11:24:25 +01:00
|
|
|
version = "9.15";
|
2009-09-10 17:57:47 +01:00
|
|
|
n = "${name}-${version}";
|
|
|
|
in
|
2010-07-28 19:01:17 +01:00
|
|
|
|
2009-09-10 17:57:47 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2008-02-17 18:40:53 +00:00
|
|
|
|
2009-09-10 17:57:47 +01:00
|
|
|
name = "${n}${if perlSupport then "-with-perl" else ""}";
|
2008-02-17 18:40:53 +00:00
|
|
|
|
2009-09-10 17:57:47 +01:00
|
|
|
src = fetchurl {
|
2011-03-18 05:55:37 +00:00
|
|
|
url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2";
|
2012-04-02 11:24:25 +01:00
|
|
|
sha256 = "ec1aa2932da844979ed8140bd92223defb12042aa5e877e05ac31139ca81f2b1";
|
2007-10-31 12:17:14 +00:00
|
|
|
};
|
2008-02-17 18:40:53 +00:00
|
|
|
|
2010-07-28 19:01:17 +01:00
|
|
|
buildInputs =
|
2011-03-18 05:55:37 +00:00
|
|
|
[ libX11 libXt libXft ncurses /* required to build the terminfo file */
|
|
|
|
fontconfig freetype pkgconfig libXrender ]
|
2010-07-28 19:01:17 +01:00
|
|
|
++ stdenv.lib.optional perlSupport perl;
|
2009-06-30 22:45:15 +01:00
|
|
|
|
2010-07-28 19:01:17 +01: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 05:55:37 +00:00
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
|
|
|
|
NIX_LDFLAGS="$NIX_LDFLAGS -lfontconfig -lXrender "
|
2010-07-28 19:01:17 +01:00
|
|
|
''
|
|
|
|
# make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
|
|
|
|
+ stdenv.lib.optionalString perlSupport ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib/perl5
|
2009-09-10 17:57:47 +01:00
|
|
|
ln -s $out/{lib/urxvt,lib/perl5/site_perl}
|
2010-07-28 19:01:17 +01:00
|
|
|
'';
|
2008-02-17 18:40:53 +00:00
|
|
|
|
2007-10-31 12:17:14 +00:00
|
|
|
meta = {
|
2010-07-28 19:01:17 +01:00
|
|
|
description = "A clone of the well-known terminal emulator rxvt";
|
2009-06-30 22:45:15 +01:00
|
|
|
longDescription = "
|
2010-07-28 19:01:17 +01:00
|
|
|
You should put this into your ~/.bashrc:
|
2009-06-30 22:45:15 +01:00
|
|
|
export TERMINFO=~/.nix-profile/share/terminfo
|
|
|
|
";
|
2007-10-31 12:17:14 +00:00
|
|
|
homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
|
|
|
|
};
|
2008-02-17 18:40:53 +00:00
|
|
|
})
|