2012-07-24 21:18:21 +02:00
|
|
|
{ stdenv, fetchurl, gzip, bzip2 }:
|
2007-04-04 11:18:39 +02:00
|
|
|
|
2009-06-05 19:16:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2012-07-24 21:18:21 +02:00
|
|
|
name = "kbd-1.15.3";
|
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";
|
2012-07-24 21:18:21 +02:00
|
|
|
sha256 = "1vcl2791xshjdpi4w88iy87gkb7zv0dbvi83f98v30dvqc9mfl46";
|
2007-04-04 11:18:39 +02:00
|
|
|
};
|
|
|
|
|
2012-07-24 21:18:21 +02:00
|
|
|
configureFlags = "--disable-nls";
|
2010-01-18 11:19:11 +01:00
|
|
|
|
2012-07-24 19:10:53 +02:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
# Fix the path to gzip/bzip2.
|
|
|
|
substituteInPlace src/findfile.c \
|
|
|
|
--replace gzip ${gzip}/bin/gzip \
|
|
|
|
--replace bzip2 ${bzip2}/bin/bzip2 \
|
|
|
|
|
|
|
|
# We get a warning in armv5tel-linux and the fuloong2f, so we
|
|
|
|
# disable -Werror in it.
|
|
|
|
${stdenv.lib.optionalString (stdenv.isArm || stdenv.system == "mips64el-linux") ''
|
|
|
|
sed -i s/-Werror// src/Makefile.am
|
|
|
|
''}
|
|
|
|
'';
|
2010-01-29 22:30:09 +01:00
|
|
|
|
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
|
|
|
}
|