nixpkgs/pkgs/tools/system/kanata/default.nix
Jian Lin 1e079ca5ce
kanata: init at 1.0.5 (#182358)
Co-authored-by: Azat Bahawi <azat+github@bahawi.net>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-24 17:40:27 +02:00

36 lines
780 B
Nix

{ fetchFromGitHub
, lib
, libevdev
, pkg-config
, rustPlatform
, withCmd ? false
}:
rustPlatform.buildRustPackage rec {
pname = "kanata";
version = "1.0.5";
src = fetchFromGitHub {
owner = "jtroo";
repo = pname;
rev = "v${version}";
sha256 = "sha256-sL9hP+222i8y0sK3ZEx66yXBTgZp5ewoPUlZS4XnphY=";
};
cargoHash = "sha256-uhN1UdwtU0C0/lpxUYoCcMLABFTPNO5wKsIGOBnFpzw=";
buildFeatures = lib.optional withCmd "cmd";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libevdev ];
meta = with lib; {
description = "A cross-platform advanced keyboard customization tool";
homepage = "https://github.com/jtroo/kanata";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ linj ];
platforms = platforms.linux;
};
}