1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/fbterm/default.nix
Michael Raskin ab85fbeec4 Updating fbterm
svn path=/nixpkgs/trunk/; revision=17981
2009-10-27 23:49:59 +00:00

38 lines
940 B
Nix

a :
let
fetchurl = a.fetchurl;
buildInputs = with a; [
gpm freetype fontconfig pkgconfig ncurses
];
s = import ./src-for-default.nix;
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit(s) name;
inherit buildInputs;
configureFlags = [];
fixInc = a.fullDepEntry (''
sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp
'') ["doUnpack" "minInit"];
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"
'') ;
/* doConfigure should be removed if not needed */
phaseNames = ["setVars" "fixInc" "fixMakeInstall" "doConfigure" "doMakeInstall"];
meta = {
description = "Framebuffer terminal emulator";
maintainers = [a.lib.maintainers.raskin];
};
}