mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
util-macros,
|
|
xorgproto,
|
|
libx11,
|
|
libxext,
|
|
libxi,
|
|
libxinerama,
|
|
libxrandr,
|
|
nix-update-script,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xinput";
|
|
version = "1.6.4";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
group = "xorg";
|
|
owner = "app";
|
|
repo = "xinput";
|
|
tag = "xinput-${finalAttrs.version}";
|
|
hash = "sha256-EsSytLzwAHMwseW4pD/c+/J1MaCWPsE7RPoMIwT96yk=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
util-macros
|
|
];
|
|
|
|
buildInputs = [
|
|
xorgproto
|
|
libx11
|
|
libxext
|
|
libxi
|
|
libxinerama
|
|
libxrandr
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { extraArgs = [ "--version-regex=xinput-(.*)" ]; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Utility to configure and test XInput devices";
|
|
homepage = "https://gitlab.freedesktop.org/xorg/app/xinput";
|
|
license = with lib.licenses; [
|
|
hpndSellVariant
|
|
mit
|
|
];
|
|
mainProgram = "xinput";
|
|
maintainers = with lib.maintainers; [
|
|
nick-linux
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|