10 rustPlatform.buildRustPackage rec {
11 pname = "system76-power";
14 src = fetchFromGitHub {
16 repo = "system76-power";
18 hash = "sha256-Ju4xIWOf6m8z1fUSbzafKkyt9XXT8q1/8RukrhtswsE=";
21 nativeBuildInputs = [ pkg-config ];
28 lockFile = ./Cargo.lock;
30 "sysfs-class-0.1.3" = "sha256-ztfwfCRAkxUd/LLNG5fpVuFdgX+tCKL3F35qYJ2GDm8=";
35 install -D -m 0644 data/com.system76.PowerDaemon.conf $out/etc/dbus-1/system.d/com.system76.PowerDaemon.conf
36 install -D -m 0644 data/com.system76.PowerDaemon.policy $out/share/polkit-1/actions/com.system76.PowerDaemon.policy
37 install -D -m 0644 data/com.system76.PowerDaemon.xml $out/share/dbus-1/interfaces/com.system76.PowerDaemon.xml
41 description = "System76 Power Management";
42 mainProgram = "system76-power";
43 homepage = "https://github.com/pop-os/system76-power";
44 license = lib.licenses.gpl3Plus;
50 maintainers = with lib.maintainers; [