about summary refs log tree commit diff
path: root/packages/swhkd/default.nix
blob: 3bf50912115577c9b1ddd6dcf609d13e89dcccd4 (plain) (blame)
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
{
  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=";
}
# Doesn't yet work because NixOS' kernel isn't compiled with CONFIG_RFKILL_INPUT=y