btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ev / evsieve / package.nix
blobb900b136974e28955ddb5d5ad043f813eeabfe75
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , libevdev
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "evsieve";
9   version = "1.4.0";
11   src = fetchFromGitHub {
12     owner = "KarsMulder";
13     repo = "evsieve";
14     rev = "v${version}";
15     hash = "sha256-UV5m8DmFtkCU/DoBJNBCdvhU/jYtU5+WnnhKwxZNl9g=";
16   };
18   cargoHash = "sha256-Bug25xK3YYQ3YjrUXlgWaVUPn87V3N/8XikqwYL/sUg=";
20   buildInputs = [ libevdev ];
22   doCheck = false; # unit tests create uinput devices
24   meta = with lib; {
25     description = "Utility for mapping events from Linux event devices";
26     mainProgram = "evsieve";
27     homepage = "https://github.com/KarsMulder/evsieve";
28     license = licenses.gpl2Plus;
29     maintainers = with maintainers; [ tsowell ];
30     platforms = platforms.linux;
31   };