Merge pull request #16135 from vrthra/xterm

xterm: 320 -> 325
This commit is contained in:
zimbatm 2016-06-12 23:49:30 +01:00 committed by GitHub
commit b39e38f096
2 changed files with 20 additions and 3 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, xorg, ncurses, freetype, fontconfig, pkgconfig }: { stdenv, fetchurl, xorg, ncurses, freetype, fontconfig, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "xterm-320"; name = "xterm-325";
src = fetchurl { src = fetchurl {
url = "ftp://invisible-island.net/xterm/${name}.tgz"; url = "ftp://invisible-island.net/xterm/${name}.tgz";
sha256 = "19r4rs5pjq944m7aiqligazf6wgmv4f023x3bx183h1l8dbvn3d6"; sha256 = "06sz66z4hvjjkvm3r5a5z442iis8lz8yjfzc629pwhj01ixb0c9v";
}; };
buildInputs = buildInputs =
@ -13,9 +13,15 @@ stdenv.mkDerivation rec {
ncurses freetype fontconfig pkgconfig xorg.libXft xorg.luit ncurses freetype fontconfig pkgconfig xorg.libXft xorg.luit
]; ];
patches = [
./sixel-256.support.patch
];
configureFlags = [ configureFlags = [
"--enable-wide-chars" "--enable-wide-chars"
"--enable-256-color" "--enable-256-color"
"--enable-sixel-graphics"
"--enable-regis-graphics"
"--enable-load-vt-fonts" "--enable-load-vt-fonts"
"--enable-i18n" "--enable-i18n"
"--enable-doublechars" "--enable-doublechars"
@ -39,7 +45,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = http://invisible-island.net/xterm; homepage = http://invisible-island.net/xterm;
license = "BSD"; license = "BSD";
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with stdenv.lib.maintainers; [viric vrthra];
platforms = with stdenv.lib.platforms; linux ++ darwin; platforms = with stdenv.lib.platforms; linux ++ darwin;
}; };
} }

View File

@ -0,0 +1,11 @@
--- xterm-325/graphics.c 2016-05-17 03:04:40.000000000 -0700
+++ xterm-325/graphics.c 2016-06-11 16:37:29.552584281 -0700
@@ -667,7 +667,7 @@
case 330:
return 4U;
case 340:
- return 16U;
+ return 256U;
case 382:
return 2U;
default: