about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-08-30 18:02:50 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-08-30 18:02:50 +0200
commit4c384115237d07f4608827264966a0282ef28daf (patch)
tree141fbb196eaa2929400c9663863dd642450dfa0e /packages
parentHardware: PC: Don't encrypt boot (diff)
downloadnixos-config-4c384115237d07f4608827264966a0282ef28daf.tar.gz
nixos-config-4c384115237d07f4608827264966a0282ef28daf.tar.bz2
nixos-config-4c384115237d07f4608827264966a0282ef28daf.zip
Packages: Add swhkd
Diffstat (limited to 'packages')
-rw-r--r--packages/default.nix1
-rw-r--r--packages/swhkd/default.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/packages/default.nix b/packages/default.nix
index 4f00524..33866ca 100644
--- a/packages/default.nix
+++ b/packages/default.nix
@@ -3,5 +3,6 @@ final: prev:
   custom = {
     kindlegen = prev.callPackage ./kindlegen { };
     lemacs = prev.callPackage ./lemacs { };
+    swhkd = prev.callPackage ./swhkd { };
   };
 }
diff --git a/packages/swhkd/default.nix b/packages/swhkd/default.nix
new file mode 100644
index 0000000..a6950e7
--- /dev/null
+++ b/packages/swhkd/default.nix
@@ -0,0 +1,19 @@
+{ rustPlatform, fetchFromGitHub, pkgs, ... }:
+rustPlatform.buildRustPackage rec {
+  name = "swhkd";
+
+  nativeBuildInputs = with pkgs; [
+    pkgconfig
+  ];
+
+  buildInputs = with pkgs; [ systemd ];
+
+  src = fetchFromGitHub {
+    owner = "waycrate";
+    repo = name;
+    rev = "2e6f091817be5f6ebf837f8fc1cdf1e54f0b3526";
+    sha256 = "sha256-6kTRAUP///EwIkF1QkQByHqHW55u2L2Gv3c+B5z3e5U=";
+  };
+
+  cargoHash = "sha256-E5AE18CfeX1HI/FbGDFoUDsPyG/CpJrD+8Ky7c+EQUw=";
+}