2008-12-08 13:44:42 +01:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
|
|
|
buildInputs = with a; [
|
2009-10-28 00:49:59 +01:00
|
|
|
gpm freetype fontconfig pkgconfig ncurses
|
2008-12-08 13:44:42 +01:00
|
|
|
];
|
2009-10-28 00:49:59 +01:00
|
|
|
s = import ./src-for-default.nix;
|
2008-12-08 13:44:42 +01:00
|
|
|
in
|
|
|
|
rec {
|
2009-10-28 00:49:59 +01:00
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
inherit(s) name;
|
2008-12-08 13:44:42 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
fixInc = a.fullDepEntry (''
|
2009-05-10 14:29:36 +02:00
|
|
|
sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp
|
|
|
|
'') ["doUnpack" "minInit"];
|
|
|
|
|
2009-10-28 00:49:59 +01:00
|
|
|
fixMakeInstall = a.fullDepEntry (''
|
|
|
|
sed -e '/install-exec-hook:/,/^[^\t]/{d}; /.NOEXPORT/iinstall-exec-hook:\
|
|
|
|
' -i src/Makefile.in
|
|
|
|
'') ["doUnpack" "minInit"];
|
|
|
|
|
|
|
|
setVars = a.noDepEntry (''
|
|
|
|
export HOME=$PWD;
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lfreetype"
|
|
|
|
'') ;
|
|
|
|
|
2008-12-08 13:44:42 +01:00
|
|
|
/* doConfigure should be removed if not needed */
|
2009-10-28 00:49:59 +01:00
|
|
|
phaseNames = ["setVars" "fixInc" "fixMakeInstall" "doConfigure" "doMakeInstall"];
|
2008-12-08 13:44:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Framebuffer terminal emulator";
|
2009-08-04 09:49:16 +02:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
2008-12-08 13:44:42 +01:00
|
|
|
};
|
|
|
|
}
|