4 , buildPythonApplication
10 , gobject-introspection
24 buildPythonApplication rec {
25 pname = "cpupower-gui";
28 # This packages doesn't have a setup.py
31 src = fetchFromGitHub {
35 sha256 = "05lvpi3wgyi741sd8lgcslj8i7yi3wz7jwl7ca3y539y50hwrdas";
39 # Fix build with 0.61, can be removed on next update
40 # https://hydra.nixos.org/build/171052557/nixlog/1
42 url = "https://github.com/vagnum08/cpupower-gui/commit/97f8ac02fe33e412b59d3f3968c16a217753e74b.patch";
43 sha256 = "XYnpm03kq8JLMjAT73BMCJWlzz40IAuHESm715VV6G0=";
45 # Fixes https://github.com/vagnum08/cpupower-gui/issues/86
47 url = "https://github.com/vagnum08/cpupower-gui/commit/22ea668aa4ecf848149ea4c150aa840a25dc6ff8.patch";
48 sha256 = "sha256-Mri7Af1Y79lt2pvZl4DQSvrqSLIJLIjzyXwMPFEbGVI=";
54 desktop-file-utils # needed for update-desktop-database
56 glib # needed for glib-compile-schemas
57 gobject-introspection # need for gtk namespace to be available
58 hicolor-icon-theme # needed for postinstall script
77 propagatedBuildInputs = [
85 "-Dsystemddir=${placeholder "out"}/lib/systemd"
89 patchShebangs build-aux/meson/postinstall.py
95 makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
98 wrapPythonProgramsIn $out/lib "$out $propagatedBuildInputs"
102 description = "Change the frequency limits of your cpu and its governor";
103 mainProgram = "cpupower-gui";
104 homepage = "https://github.com/vagnum08/cpupower-gui/";
105 license = licenses.gpl3Plus;
106 maintainers = with maintainers; [ unode ];