2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, dbus
|
|
|
|
, libX11
|
|
|
|
, libusb1
|
|
|
|
, pkg-config
|
|
|
|
, udev
|
|
|
|
, wayland
|
2024-09-19 14:19:46 +00:00
|
|
|
, wayland-scanner
|
2024-04-21 15:54:59 +00:00
|
|
|
, libxkbcommon
|
2024-06-05 15:53:02 +00:00
|
|
|
, gtk3
|
|
|
|
, libayatana-appindicator
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "keymapper";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.8.2";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "houmain";
|
|
|
|
repo = "keymapper";
|
|
|
|
rev = finalAttrs.version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-4LYGsqHD3msJNgkaInJyH7o+jebeQoh/rUAsvIsqkdM=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# all the following must be in nativeBuildInputs
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
dbus
|
|
|
|
wayland
|
2024-09-19 14:19:46 +00:00
|
|
|
wayland-scanner
|
2023-08-10 07:59:29 +00:00
|
|
|
libX11
|
|
|
|
udev
|
|
|
|
libusb1
|
2024-04-21 15:54:59 +00:00
|
|
|
libxkbcommon
|
2024-06-05 15:53:02 +00:00
|
|
|
gtk3
|
|
|
|
libayatana-appindicator
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/houmain/keymapper/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cross-platform context-aware key remapper";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://github.com/houmain/keymapper";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
mainProgram = "keymapper";
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ dit7ya spitulax ];
|
2023-08-10 07:59:29 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|