Merge pull request #1020 from edwtjo/urxvt-256-colors
URxvt: Use 256 colors not just 88.
This commit is contained in:
commit
e7e01913a0
|
@ -1,7 +1,7 @@
|
||||||
{ 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 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "rxvt-unicode";
|
name = "rxvt-unicode";
|
||||||
version = "9.16";
|
version = "9.16";
|
||||||
n = "${name}-${version}";
|
n = "${name}-${version}";
|
||||||
|
@ -17,14 +17,14 @@ stdenv.mkDerivation (rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ libX11 libXt libXft ncurses /* required to build the terminfo file */
|
[ libX11 libXt libXft ncurses /* required to build the terminfo file */
|
||||||
fontconfig freetype pkgconfig libXrender ]
|
fontconfig freetype pkgconfig libXrender ]
|
||||||
++ stdenv.lib.optional perlSupport perl
|
++ stdenv.lib.optional perlSupport perl
|
||||||
++ stdenv.lib.optional gdkPixbufSupport gdk_pixbuf;
|
++ stdenv.lib.optional gdkPixbufSupport gdk_pixbuf;
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
''
|
||||||
configureFlags="--with-terminfo=$out/share/terminfo ${if perlSupport then "--enable-perl" else "--disable-perl"}";
|
configureFlags="--with-terminfo=$out/share/terminfo --enable-256-color ${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
|
export TERMINFO=$out/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 "
|
||||||
|
|
Loading…
Reference in a new issue