2022-08-12 12:06:08 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, withCmd ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kanata";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.0.7";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtroo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-2gGFAz0zXea+27T4ayDj6KdoI0ThwXV7U0CspHduTiQ=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
cargoHash = "sha256-0NvZATdPABIboL5xvmBmDbqPPWvO4mM6wVB3FrOVHIQ=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
buildFeatures = lib.optional withCmd "cmd";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "A tool to improve keyboard comfort and usability with advanced customization";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/jtroo/kanata";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ linj ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|