mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
31 lines
852 B
Nix
31 lines
852 B
Nix
{ pkg-config, libusb1, dbus, lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "system76-power";
|
|
version = "1.1.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pop-os";
|
|
repo = "system76-power";
|
|
rev = version;
|
|
sha256 = "sha256-Qk9zHqwFlUTWE+YRt2GASIekbDoBCHPAUUN3+0wpvfw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ dbus libusb1 ];
|
|
|
|
cargoSha256 = "sha256-iG7M9ICFRTFVkbC89DyfR+Iyi7jaT9WmG3PSdBOF7YI=";
|
|
|
|
postInstall = ''
|
|
install -D -m 0644 data/system76-power.conf $out/etc/dbus-1/system.d/system76-power.conf
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "System76 Power Management";
|
|
homepage = "https://github.com/pop-os/system76-power";
|
|
license = licenses.gpl3Plus;
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
maintainers = [ maintainers.jwoudenberg ];
|
|
};
|
|
}
|