Adding a fbterm variant building with stdenv to get cross-build-ability
(I want it in the nanonote) svn path=/nixpkgs/branches/stdenv-updates/; revision=24880
This commit is contained in:
parent
5103335a61
commit
e18cbe33e6
32
pkgs/os-specific/linux/fbterm/stdenv.nix
Normal file
32
pkgs/os-specific/linux/fbterm/stdenv.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Quick version to be able to cross-build fbterm meanwhile builderDefs cannot
|
||||||
|
# cross-build with an equivalent to the stdenvCross adapter.
|
||||||
|
{ stdenv, fetchurl, gpm, freetype, fontconfig, pkgconfig, ncurses }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version="1.5";
|
||||||
|
name="fbterm-1.5";
|
||||||
|
hash="05qzc6g9a79has3cy7dlw70n4pn13r552a2i1g4xy23acnpvvjsb";
|
||||||
|
url="http://fbterm.googlecode.com/files/fbterm-${version}.tar.gz";
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit name;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
inherit url;
|
||||||
|
sha256 = hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildNativeInputs = [ ncurses ];
|
||||||
|
buildInputs = [ gpm freetype fontconfig pkgconfig ];
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp
|
||||||
|
|
||||||
|
sed -e '/install-exec-hook:/,/^[^\t]/{d}; /.NOEXPORT/iinstall-exec-hook:\
|
||||||
|
' -i src/Makefile.in
|
||||||
|
|
||||||
|
export HOME=$PWD;
|
||||||
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lfreetype"
|
||||||
|
'';
|
||||||
|
}
|
@ -4491,6 +4491,8 @@ let
|
|||||||
inherit fontconfig gpm freetype pkgconfig ncurses;
|
inherit fontconfig gpm freetype pkgconfig ncurses;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fbtermStdenv = callPackage ../os-specific/linux/fbterm/stdenv.nix { };
|
||||||
|
|
||||||
fuse = callPackage ../os-specific/linux/fuse { };
|
fuse = callPackage ../os-specific/linux/fuse { };
|
||||||
|
|
||||||
fxload = callPackage ../os-specific/linux/fxload { };
|
fxload = callPackage ../os-specific/linux/fxload { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user