summaryrefslogtreecommitdiff
path: root/pkgs/swhkd/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-17 19:37:35 -0400
committerseth <[email protected]>2023-04-17 19:37:35 -0400
commit76817703bb1cf925e6f99a2ba8ad78d2ec560b6e (patch)
treedae7d85267d6cf6d52440d5376b151b80edbee17 /pkgs/swhkd/default.nix
parent5c5cb3b928ab4a4bd5fd3886fb40cb109d713347 (diff)
feat(flake)!: use less inputs
Diffstat (limited to 'pkgs/swhkd/default.nix')
-rw-r--r--pkgs/swhkd/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/swhkd/default.nix b/pkgs/swhkd/default.nix
new file mode 100644
index 0000000..96a79c9
--- /dev/null
+++ b/pkgs/swhkd/default.nix
@@ -0,0 +1,40 @@
+{
+ lib,
+ fetchFromGitHub,
+ polkit,
+ rustPlatform,
+ xorg,
+}: let
+ inherit (rustPlatform) buildRustPackage;
+ inherit (lib) licenses maintainers platforms;
+in
+ buildRustPackage rec {
+ pname = "swhkd";
+ version = "1.2.1";
+
+ src = fetchFromGitHub {
+ owner = "waycrate";
+ repo = "swhkd";
+ rev = version;
+ sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA=";
+ };
+
+ cargoPatches = [
+ ./update-lock.patch
+ ];
+ cargoSha256 = "sha256-h8n4qB6n4et7d1CfIwam8y9A1gH9lsqZD50t9YI1ieM=";
+
+ 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;
+ };
+ }