2022-08-12 12:06:08 +00:00
|
|
|
{ fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchpatch
|
2022-08-12 12:06:08 +00:00
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, withCmd ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kanata";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.2.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jtroo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-mQSbsJ+3mKoDMg0ewwR7UvXUq+5WA9aTPKWCaTz8nDE=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cargoHash = "sha256-Pu96OGfnXNaIse/IcwFJWxGMlKOVhZ6DtvgXJkHh+Ao=";
|
|
|
|
|
|
|
|
cargoPatches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "serialize-cfg-parsing-tests-for-1.2.0.patch";
|
|
|
|
url = "https://github.com/jtroo/kanata/commit/9ef1e80fbcb40402262e08bd9196d000f73f686d.patch";
|
|
|
|
hash = "sha256-/FhyaYx4usDjGoVfRktf9dtwjY4oXdMQKqxLz00/NPY=";
|
|
|
|
})
|
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|