mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
68096cab7f
We actually don't need to `strip` using `install`. Stripping is already part of the fixup. This ends up being a fix we can apply universally, but works around an issue where `install` doesn't know about the prefixed `strip` binary.
31 lines
883 B
Nix
31 lines
883 B
Nix
{ stdenv, fetchurl, linuxHeaders }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "input-utils";
|
|
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)"
|
|
"STRIP="
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Input layer utilities, includes lsinput";
|
|
homepage = "https://www.kraxel.org/blog/linux/input/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ samueldr ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|