-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathregolith-powerd.nix
More file actions
44 lines (37 loc) · 1001 Bytes
/
regolith-powerd.nix
File metadata and controls
44 lines (37 loc) · 1001 Bytes
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
41
42
43
44
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, glib
,
}:
rustPlatform.buildRustPackage rec {
pname = "regolith-powerd";
version = "0.3.3";
src = fetchFromGitHub {
owner = "regolith-linux";
repo = "regolith-powerd";
rev = "v${version}";
hash = "sha256-Hu6EhNBClHsh0mrOAfPw848q0czoivoYnpiE9/+drK4=";
};
cargoHash = "sha256-HHnilpOW1bnhxFqy5l5+FPO8Qp5zSAE/k14unK/gEig=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
glib
];
# postInstall = ''
# mkdir -p $out/lib/systemd/user/
# install -Dm644 data/regolith-init-powerd.service $out/lib/systemd/user/
# ls
# ls $src
# '';
meta = {
description = "Daemon to sync gsd power settings with Regolith on Wayland. Provides idle state functionality and sets power button action";
homepage = "https://github.com/regolith-linux/regolith-powerd";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ];
mainProgram = "regolith-powerd";
};
}