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