Updating fbterm

svn path=/nixpkgs/trunk/; revision=17981
This commit is contained in:
Michael Raskin 2009-10-27 23:49:59 +00:00
parent cd04c58fe2
commit ab85fbeec4
4 changed files with 29 additions and 10 deletions

@ -2,17 +2,14 @@ a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "1.2" a;
buildInputs = with a; [
gpm fontconfig freetype pkgconfig
gpm freetype fontconfig pkgconfig ncurses
];
s = import ./src-for-default.nix;
in
rec {
src = fetchurl {
url = "http://fbterm.googlecode.com/files/fbterm-${version}.tar.gz";
sha256 = "0q4axmnpwlpjlpaj19iw7nyxkqsvwq767szdkzsgancq99afwqyd";
};
src = a.fetchUrlFromSrcInfo s;
inherit(s) name;
inherit buildInputs;
configureFlags = [];
@ -20,10 +17,19 @@ rec {
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 = ["fixInc" "doConfigure" "doMakeInstall"];
phaseNames = ["setVars" "fixInc" "fixMakeInstall" "doConfigure" "doMakeInstall"];
name = "fbterm-" + version;
meta = {
description = "Framebuffer terminal emulator";
maintainers = [a.lib.maintainers.raskin];

@ -0,0 +1,9 @@
rec {
version="1.5";
name="fbterm-1.5";
hash="05qzc6g9a79has3cy7dlw70n4pn13r552a2i1g4xy23acnpvvjsb";
url="http://fbterm.googlecode.com/files/fbterm-${version}.tar.gz";
advertisedUrl="http://fbterm.googlecode.com/files/fbterm-1.5.tar.gz";
}

@ -0,0 +1,4 @@
{
downloadPage = "http://code.google.com/p/fbterm/";
baseName = "fbterm";
}

@ -5278,7 +5278,7 @@ let
};
fbterm = builderDefsPackage (import ../os-specific/linux/fbterm) {
inherit fontconfig gpm freetype pkgconfig;
inherit fontconfig gpm freetype pkgconfig ncurses;
};
fuse = import ../os-specific/linux/fuse {