2018-05-06 21:19:41 +02:00
|
|
|
{ stdenv, fetchurl, linuxHeaders }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "input-utils";
|
2018-05-06 21:19:41 +02:00
|
|
|
version = "1.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.kraxel.org/releases/input/input-${version}.tar.gz";
|
|
|
|
sha256 = "11w0pp20knx6qpgzmawdbk1nj2z3fzp8yd6nag6s8bcga16w6hli";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# Use proper include path for kernel include files.
|
|
|
|
substituteInPlace ./name.sh --replace "/usr/include/linux/" "${linuxHeaders}/include/linux/"
|
|
|
|
substituteInPlace ./lirc.sh --replace "/usr/include/linux/" "${linuxHeaders}/include/linux/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2020-06-06 00:52:47 +02:00
|
|
|
"STRIP="
|
2018-05-06 21:19:41 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Input layer utilities, includes lsinput";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.kraxel.org/blog/linux/input/";
|
2018-05-06 21:19:41 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ samueldr ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|