diff options
Diffstat (limited to 'packages')
-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="; +} |