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