nixpkgs/pkgs/os-specific/linux/kbd/default.nix
Lluís Batlle i Rossell 4a1c721c01 Changing every reference from mips64-linux to mips64el-linux. That's
what the new nix thinks the fuloong is.

Anyone having the old nix should use a nixpkgs previous to this change to build
the new nix. And then, with the new nix, he can use any newer nixpkgs revision.

svn path=/nixpkgs/trunk/; revision=31751
2012-01-21 00:34:51 +00:00

31 lines
847 B
Nix

{ stdenv, fetchurl, bison, flex, autoconf, automake }:
stdenv.mkDerivation rec {
name = "kbd-1.15.2";
src = fetchurl {
url = "ftp://ftp.altlinux.org/pub/people/legion/kbd/${name}.tar.gz";
sha256 = "0ff674y6d3b6ix08b9l2yzv8igns768biyp5y92vip7iz4xv2p2j";
};
buildNativeInputs = [ bison flex autoconf automake ];
# We get a warning in armv5tel-linux and the fuloong2f,
# so we disable -Werror in it
patchPhase = if (stdenv.system == "armv5tel-linux" ||
stdenv.system == "mips64el-linux")
then ''
sed -i s/-Werror// src/Makefile.am
'' else "";
# Grrr, kbd 1.15.1 doesn't include a configure script.
preConfigure = "autoreconf";
makeFlags = "setowner= ";
meta = {
homepage = ftp://ftp.altlinux.org/pub/people/legion/kbd/;
description = "Linux keyboard utilities and keyboard maps";
};
}