diff options
| author | seth <[email protected]> | 2023-06-27 03:41:56 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-06-27 03:41:56 -0400 |
| commit | 392f1e034ac2dc5ad11b0c98a36eeb85ba59656c (patch) | |
| tree | 6de3ccd41276c9848bda5497670500c921de316c /pkgs/swhkd | |
| parent | dac411699f617a5f2f3866da1e4b85befe383600 (diff) | |
pkgs: refactor swhkd
Diffstat (limited to 'pkgs/swhkd')
| -rw-r--r-- | pkgs/swhkd/default.nix | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/pkgs/swhkd/default.nix b/pkgs/swhkd/default.nix index 7f46a4f..4211346 100644 --- a/pkgs/swhkd/default.nix +++ b/pkgs/swhkd/default.nix @@ -4,37 +4,34 @@ polkit, rustPlatform, xorg, -}: let - inherit (rustPlatform) buildRustPackage; - inherit (lib) licenses maintainers platforms; -in - buildRustPackage rec { - pname = "swhkd"; - version = "1.2.1"; +}: +rustPlatform.buildRustPackage rec { + pname = "swhkd"; + version = "1.2.1"; - src = fetchFromGitHub { - owner = "waycrate"; - repo = "swhkd"; - rev = version; - sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA="; - }; + src = fetchFromGitHub { + owner = "waycrate"; + repo = "swhkd"; + rev = version; + sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA="; + }; - cargoPatches = [ - ./update-lock.patch - ]; - cargoSha256 = "sha256-h8n4qB6n4et7d1CfIwam8y9A1gH9lsqZD50t9YI1ieM="; + cargoPatches = [ + ./update-lock.patch + ]; + cargoSha256 = "sha256-h8n4qB6n4et7d1CfIwam8y9A1gH9lsqZD50t9YI1ieM="; - buildInputs = [ - polkit - xorg.xf86inputevdev - ]; + buildInputs = [ + polkit + xorg.xf86inputevdev + ]; - meta = { - description = "Sxhkd clone for Wayland"; - longDescription = "a display protocol-independent hotkey daemon made in Rust"; - homepage = "https://github.com/waycrate/swhkd"; - license = licenses.bsd2; - #maintainers = with maintainers; [getchoo]; - platforms = platforms.linux; - }; - } + meta = with lib; { + description = "Sxhkd clone for Wayland"; + longDescription = "a display protocol-independent hotkey daemon made in Rust"; + homepage = "https://github.com/waycrate/swhkd"; + license = licenses.bsd2; + maintainers = [maintainers.getchoo]; + platforms = platforms.linux; + }; +} |
