1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Add unicode3 option to rxvt_unicode

Needed to user fonts patched for powerline.
This commit is contained in:
Jordan Patterson 2014-05-22 15:13:25 -06:00
parent 925a016113
commit 0bc17d9fa9
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl, { stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl,
fontconfig, freetype, pkgconfig, libXrender, gdkPixbufSupport, gdk_pixbuf }: fontconfig, freetype, pkgconfig, libXrender, gdkPixbufSupport, gdk_pixbuf,
unicode3Support }:
let let
name = "rxvt-unicode"; name = "rxvt-unicode";
@ -9,7 +10,7 @@ in
stdenv.mkDerivation (rec { stdenv.mkDerivation (rec {
name = "${n}${if perlSupport then "-with-perl" else ""}"; name = "${n}${if perlSupport then "-with-perl" else ""}${if unicode3Support then "-with-unicode3" else ""}";
src = fetchurl { src = fetchurl {
url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2"; url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2";
@ -29,7 +30,7 @@ stdenv.mkDerivation (rec {
preConfigure = preConfigure =
'' ''
mkdir -p $terminfo/share/terminfo mkdir -p $terminfo/share/terminfo
configureFlags="--with-terminfo=$terminfo/share/terminfo --enable-256-color ${if perlSupport then "--enable-perl" else "--disable-perl"}"; configureFlags="--with-terminfo=$terminfo/share/terminfo --enable-256-color ${if perlSupport then "--enable-perl" else "--disable-perl"} ${if unicode3Support then "--enable-unicode3" else "--disable-unicode3"}";
export TERMINFO=$terminfo/share/terminfo # without this the terminfo won't be compiled by tic, see man tic export TERMINFO=$terminfo/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2" NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
NIX_LDFLAGS="$NIX_LDFLAGS -lfontconfig -lXrender " NIX_LDFLAGS="$NIX_LDFLAGS -lfontconfig -lXrender "

View file

@ -9237,6 +9237,7 @@ let
rxvt_unicode = callPackage ../applications/misc/rxvt_unicode { rxvt_unicode = callPackage ../applications/misc/rxvt_unicode {
perlSupport = true; perlSupport = true;
gdkPixbufSupport = true; gdkPixbufSupport = true;
unicode3Support = true;
}; };
sakura = callPackage ../applications/misc/sakura { sakura = callPackage ../applications/misc/sakura {