fbterm: install terminfo definition

Hopefully helps with #22988
This commit is contained in:
Michael Raskin 2017-02-19 17:29:42 +01:00
parent 19798cb205
commit 511f82d6e5

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, gpm, freetype, fontconfig, pkgconfig, ncurses}:
{stdenv, fetchurl, gpm, freetype, fontconfig, pkgconfig, ncurses, libx86}:
let
s = # Generated upstream information
rec {
@ -9,7 +9,7 @@ let
url="http://fbterm.googlecode.com/files/fbterm-1.7.0.tar.gz";
sha256="0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj";
};
buildInputs = [gpm freetype fontconfig pkgconfig ncurses];
buildInputs = [gpm freetype fontconfig pkgconfig ncurses libx86];
in
stdenv.mkDerivation {
inherit (s) name version;
@ -24,6 +24,10 @@ stdenv.mkDerivation {
export HOME=$PWD;
export NIX_LDFLAGS="$NIX_LDFLAGS -lfreetype"
'';
preBuild = ''
mkdir -p "$out/share/terminfo"
tic -a -v2 -o"$out/share/terminfo" terminfo/fbterm
'';
meta = {
inherit (s) version;
description = "Framebuffer terminal emulator";