2024-04-06 00:21:26 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, udev
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec{
|
|
|
|
pname = "makima";
|
2024-06-08 11:57:25 +00:00
|
|
|
version = "0.9.3";
|
2024-04-06 00:21:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyber-sushi";
|
|
|
|
repo = "makima";
|
|
|
|
rev = "v${version}";
|
2024-06-08 11:57:25 +00:00
|
|
|
hash = "sha256-esZCFMeIRoafR7vQbnyf3Mo18trVZdIy9rvAvTHfrLA=";
|
2024-04-06 00:21:26 +00:00
|
|
|
};
|
|
|
|
|
2024-06-08 11:57:25 +00:00
|
|
|
cargoHash = "sha256-NXiK+cimQaYpzY3WSHUlYUWcXOLWQ5TwGuZKh+OB+go=";
|
2024-04-06 00:21:26 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ udev ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux daemon to remap and create macros for keyboards, mice and controllers";
|
|
|
|
homepage = "https://github.com/cyber-sushi/makima";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ByteSudoer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
mainProgram = "makima";
|
|
|
|
};
|
|
|
|
}
|