Making more packages build on the Fuloong2f.
I still can't build the kernel because it requires binutils yet to be released. svn path=/nixpkgs/branches/stdenv-updates/; revision=23132
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
{ stdenv, fetchurl, bison, flex, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kbd-1.15.1";
|
||||
name = "kbd-1.15.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.altlinux.org/pub/people/legion/kbd/${name}.tar.gz";
|
||||
sha256 = "1klrxas8vjikx6jm6m2lcpmn88lhxb6p3whwgdwq9d9flf1qrf4i";
|
||||
sha256 = "19pb44m5m0mcgjkmgkjx4fn8j2m4xwqx4g7w2y1nlypg3qcjsq5k";
|
||||
};
|
||||
|
||||
buildInputs = [ bison flex autoconf automake ];
|
||||
|
||||
# We get a warning in armv5tel-linux, so we disable -Werror in it
|
||||
patchPhase = if (stdenv.system == "armv5tel-linux") then ''
|
||||
sed -i s/-Werror// src/Makefile.am
|
||||
'' else "";
|
||||
# We get a warning in armv5tel-linux and the fuloong2f,
|
||||
# so we disable -Werror in it
|
||||
patchPhase = if (stdenv.system == "armv5tel-linux" ||
|
||||
stdenv.system == "ict_loongson-2_v0.3_fpu_v0.1-linux")
|
||||
then ''
|
||||
sed -i s/-Werror// src/Makefile.am
|
||||
'' else "";
|
||||
|
||||
# Grrr, kbd 1.15.1 doesn't include a configure script.
|
||||
preConfigure = "autoreconf";
|
||||
|
||||
Reference in New Issue
Block a user