powerstation: init at 0.4.2
This commit is contained in:
parent
d006c98f55
commit
0cf542bc41
48
pkgs/by-name/po/powerstation/package.nix
Normal file
48
pkgs/by-name/po/powerstation/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
udev,
|
||||
pciutils,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "powerstation";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ShadowBlip";
|
||||
repo = "PowerStation";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-R6p3zuYWggnOy60iGZ6G23ig1gzezweswAxVrCB+zvU=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-3mOmDDDGW7AClG4tNuXti07lCNbK5bMnpWUnsxcxGPI=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
udev
|
||||
pciutils
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
cp -r rootfs/usr/* $out/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Open source TDP control and performance daemon with DBus interface";
|
||||
homepage = "https://github.com/ShadowBlip/PowerStation";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
changelog = "https://github.com/ShadowBlip/PowerStation/releases/tag/v${version}";
|
||||
maintainers = with lib.maintainers; [ shadowapex ];
|
||||
mainProgram = "powerstation";
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user