Skip to content

Commit 0cf542b

Browse files
committed
powerstation: init at 0.4.2
1 parent d006c98 commit 0cf542b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
udev,
7+
pciutils,
8+
cmake,
9+
}:
10+
11+
rustPlatform.buildRustPackage rec {
12+
pname = "powerstation";
13+
version = "0.4.2";
14+
15+
src = fetchFromGitHub {
16+
owner = "ShadowBlip";
17+
repo = "PowerStation";
18+
tag = "v${version}";
19+
hash = "sha256-R6p3zuYWggnOy60iGZ6G23ig1gzezweswAxVrCB+zvU=";
20+
};
21+
22+
useFetchCargoVendor = true;
23+
cargoHash = "sha256-3mOmDDDGW7AClG4tNuXti07lCNbK5bMnpWUnsxcxGPI=";
24+
25+
nativeBuildInputs = [
26+
cmake
27+
pkg-config
28+
rustPlatform.bindgenHook
29+
];
30+
31+
buildInputs = [
32+
udev
33+
pciutils
34+
];
35+
36+
postInstall = ''
37+
cp -r rootfs/usr/* $out/
38+
'';
39+
40+
meta = {
41+
description = "Open source TDP control and performance daemon with DBus interface";
42+
homepage = "https://github.com/ShadowBlip/PowerStation";
43+
license = lib.licenses.gpl3Plus;
44+
changelog = "https://github.com/ShadowBlip/PowerStation/releases/tag/v${version}";
45+
maintainers = with lib.maintainers; [ shadowapex ];
46+
mainProgram = "powerstation";
47+
};
48+
}

0 commit comments

Comments
 (0)