summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix5
-rw-r--r--pkgs/swhkd.nix37
2 files changed, 40 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index b8b5c78..2302800 100644
--- a/flake.nix
+++ b/flake.nix
@@ -20,7 +20,7 @@
pre-commit-hooks,
...
}: let
- supportedSystsems = with utils.lib.system; [
+ supportedSystems = with utils.lib.system; [
x86_64-linux
x86_64-darwin
aarch64-linux
@@ -31,12 +31,13 @@
treefetch = callPackage ./pkgs/treefetch.nix {inherit naersk;};
material-color-utilities = callPackage ./pkgs/material-color-utilities.nix {};
gradience = callPackage ./pkgs/gradience.nix {inherit material-color-utilities;};
+ swhkd = callPackage ./pkgs/swhkd.nix {inherit naersk;};
};
overrides = prev: {
discord-canary = import ./pkgs/discord-canary.nix prev;
};
in
- utils.lib.eachSystem supportedSystsems (system: let
+ utils.lib.eachSystem supportedSystems (system: let
pkgs = import nixpkgs {inherit system;};
in {
checks = {
diff --git a/pkgs/swhkd.nix b/pkgs/swhkd.nix
new file mode 100644
index 0000000..f4c35cc
--- /dev/null
+++ b/pkgs/swhkd.nix
@@ -0,0 +1,37 @@
+{
+ lib,
+ callPackage,
+ fetchFromGitHub,
+ naersk,
+ polkit,
+ xorg,
+}: let
+ version = "1.2.1";
+ package = (callPackage naersk {}).buildPackage {
+ buildInputs = [
+ polkit
+ xorg.xf86inputevdev
+ ];
+ src = fetchFromGitHub {
+ owner = "waycrate";
+ repo = "swhkd";
+ rev = version;
+ sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA=";
+ };
+ };
+in
+ package
+ // (let
+ inherit (lib) licenses maintainers platforms;
+ in {
+ meta =
+ package.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;
+ };
+ })