blob: 96a79c9f9f2899e3b5e3621fff8f2402c3834a20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
};
}
|