Merge pull request #40042 from samueldr/package/input-utils

input-utils: init at 1.3
This commit is contained in:
Matthew Justin Bauer 2018-05-09 16:07:59 +00:00 committed by GitHub
commit d9debbeacf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ stdenv, fetchurl, linuxHeaders }:
stdenv.mkDerivation rec {
name = "input-utils-${version}";
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=-s"
];
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;
};
}

View file

@ -3053,6 +3053,8 @@ with pkgs;
innoextract = callPackage ../tools/archivers/innoextract { };
input-utils = callPackage ../os-specific/linux/input-utils { };
intecture-agent = callPackage ../tools/admin/intecture/agent.nix { };
intecture-auth = callPackage ../tools/admin/intecture/auth.nix { };