2012-12-04 08:47:40 +01:00
|
|
|
{stdenv, fetchurl, gpm, freetype, fontconfig, pkgconfig, ncurses}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="fbterm";
|
|
|
|
version="1.7.0";
|
|
|
|
name="fbterm-1.7.0";
|
|
|
|
hash="0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj";
|
|
|
|
url="http://fbterm.googlecode.com/files/fbterm-1.7.0.tar.gz";
|
|
|
|
sha256="0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj";
|
|
|
|
};
|
|
|
|
buildInputs = [gpm freetype fontconfig pkgconfig ncurses];
|
2008-12-08 13:44:42 +01:00
|
|
|
in
|
2012-12-04 08:47:40 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2008-12-08 13:44:42 +01:00
|
|
|
inherit buildInputs;
|
2012-12-04 08:47:40 +01:00
|
|
|
preConfigure = ''
|
2009-05-10 14:29:36 +02:00
|
|
|
sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp
|
2009-10-28 00:49:59 +01:00
|
|
|
sed -e '/install-exec-hook:/,/^[^\t]/{d}; /.NOEXPORT/iinstall-exec-hook:\
|
|
|
|
' -i src/Makefile.in
|
|
|
|
export HOME=$PWD;
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lfreetype"
|
2012-12-04 08:47:40 +01:00
|
|
|
'';
|
2008-12-08 13:44:42 +01:00
|
|
|
meta = {
|
2012-12-04 08:47:40 +01:00
|
|
|
inherit (s) version;
|
2008-12-08 13:44:42 +01:00
|
|
|
description = "Framebuffer terminal emulator";
|
2012-12-04 08:47:40 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-12-08 13:44:42 +01:00
|
|
|
};
|
|
|
|
}
|