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-01-18 11:19:11 +01:00
|
|
|
name = "kbd-1.15.1";
|
2007-04-04 11:18:39 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-06-05 19:16:14 +02:00
|
|
|
url = "ftp://ftp.altlinux.org/pub/people/legion/kbd/${name}.tar.gz";
|
2010-01-18 11:19:11 +01:00
|
|
|
sha256 = "1klrxas8vjikx6jm6m2lcpmn88lhxb6p3whwgdwq9d9flf1qrf4i";
|
2007-04-04 11:18:39 +02:00
|
|
|
};
|
|
|
|
|
2010-01-18 11:19:11 +01:00
|
|
|
buildInputs = [ bison flex autoconf automake ];
|
|
|
|
|
2010-01-29 22:30:09 +01:00
|
|
|
# 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 "";
|
|
|
|
|
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
|
|
|
}
|