2010-01-18 10:19:11 +00:00
|
|
|
{ stdenv, fetchurl, bison, flex, autoconf, automake }:
|
2007-04-04 09:18:39 +00:00
|
|
|
|
2009-06-05 17:16:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-08-11 20:16:09 +00:00
|
|
|
name = "kbd-1.15.2";
|
2007-04-04 09:18:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-09-09 17:08:14 +00:00
|
|
|
url = "ftp://ftp.altlinux.org/pub/people/legion/kbd/${name}.tar.gz";
|
|
|
|
sha256 = "0ff674y6d3b6ix08b9l2yzv8igns768biyp5y92vip7iz4xv2p2j";
|
2007-04-04 09:18:39 +00:00
|
|
|
};
|
|
|
|
|
2010-11-25 09:14:56 +00:00
|
|
|
buildNativeInputs = [ bison flex autoconf automake ];
|
2010-01-18 10:19:11 +00:00
|
|
|
|
2010-08-11 20:16:09 +00:00
|
|
|
# We get a warning in armv5tel-linux and the fuloong2f,
|
|
|
|
# so we disable -Werror in it
|
|
|
|
patchPhase = if (stdenv.system == "armv5tel-linux" ||
|
2010-09-01 09:50:12 +00:00
|
|
|
stdenv.system == "mips64-linux")
|
2010-08-11 20:16:09 +00:00
|
|
|
then ''
|
|
|
|
sed -i s/-Werror// src/Makefile.am
|
|
|
|
'' else "";
|
2010-01-29 21:30:09 +00:00
|
|
|
|
2010-01-18 10:19:11 +00:00
|
|
|
# Grrr, kbd 1.15.1 doesn't include a configure script.
|
|
|
|
preConfigure = "autoreconf";
|
2007-04-04 09:18:39 +00:00
|
|
|
|
|
|
|
makeFlags = "setowner= ";
|
2010-01-18 10:19:11 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = ftp://ftp.altlinux.org/pub/people/legion/kbd/;
|
|
|
|
description = "Linux keyboard utilities and keyboard maps";
|
|
|
|
};
|
2007-04-04 09:18:39 +00:00
|
|
|
}
|