diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-08-30 18:02:50 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-08-30 18:02:50 +0200 |
commit | 4c384115237d07f4608827264966a0282ef28daf (patch) | |
tree | 141fbb196eaa2929400c9663863dd642450dfa0e | |
parent | Hardware: PC: Don't encrypt boot (diff) | |
download | nixos-config-4c384115237d07f4608827264966a0282ef28daf.tar.gz nixos-config-4c384115237d07f4608827264966a0282ef28daf.tar.bz2 nixos-config-4c384115237d07f4608827264966a0282ef28daf.zip |
Packages: Add swhkd
-rw-r--r-- | packages/default.nix | 1 | ||||
-rw-r--r-- | packages/swhkd/default.nix | 19 |
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="; +} |