mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
a7717edb07
Also install an icon.
35 lines
841 B
Nix
35 lines
841 B
Nix
{ fetchFromGitHub
|
|
, fetchpatch
|
|
, lib
|
|
, rustPlatform
|
|
, withCmd ? false
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kanata";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtroo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gHkcOn37MNpcP6ra1Eur9O4/trPGmAOAGVU1NwiuQGY=";
|
|
};
|
|
|
|
cargoHash = "sha256-C2d7QdgWd9RTQtXLD4mO0txpzo/SbemJx9YYu62QbqA=";
|
|
|
|
buildFeatures = lib.optional withCmd "cmd";
|
|
|
|
postInstall = ''
|
|
install -Dm 444 assets/kanata-icon.svg $out/share/icons/hicolor/scalable/apps/kanata.svg
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|