1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 19:21:11 -04:00
nixpkgs/pkgs/tools/system/kanata/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
856 B
Nix
Raw Normal View History

2023-07-25 12:12:44 -04:00
{ lib
, rustPlatform
2023-07-25 12:12:44 -04:00
, fetchFromGitHub
, withCmd ? false
}:
rustPlatform.buildRustPackage rec {
pname = "kanata";
2023-08-02 05:23:54 -04:00
version = "1.4.0";
src = fetchFromGitHub {
owner = "jtroo";
repo = pname;
rev = "v${version}";
2023-08-02 05:23:54 -04:00
sha256 = "sha256-Tenh2LARajYAFHJ5gddeozY7rfySSvqFhudc/7b9cGg=";
};
2023-08-02 05:23:54 -04:00
cargoHash = "sha256-oJVGZhKJVK8q5lgK+G+KhVupOF05u37B7Nmv4rrI28I=";
buildFeatures = lib.optional withCmd "cmd";
postInstall = ''
install -Dm 444 assets/kanata-icon.svg $out/share/icons/hicolor/scalable/apps/kanata.svg
'';
meta = with lib; {
2022-08-20 21:06:28 -04:00
description = "A tool to improve keyboard comfort and usability with advanced customization";
homepage = "https://github.com/jtroo/kanata";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ linj ];
platforms = platforms.linux;
mainProgram = "kanata";
};
}