diff options
author | Renato Alves <alves.rjc@gmail.com> | 2020-10-10 00:08:05 +0200 |
---|---|---|
committer | Renato Alves <alves.rjc@gmail.com> | 2021-07-28 20:00:42 +0200 |
commit | 05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121 (patch) | |
tree | 83cd87f6233f95d8706b30797784abdec1ae6c67 /pkgs/os-specific/linux/cpupower-gui | |
parent | 0acf96eb7f42651147261441a384c10854a5cde5 (diff) | |
download | nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar.gz nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar.bz2 nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar.lz nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar.xz nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.tar.zst nixpkgs-05e0e96c3a8ffc56f4aaae1a8dc002fd6a454121.zip |
cpupower-gui: init at 1.0.0
Diffstat (limited to 'pkgs/os-specific/linux/cpupower-gui')
-rw-r--r-- | pkgs/os-specific/linux/cpupower-gui/default.nix | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/cpupower-gui/default.nix b/pkgs/os-specific/linux/cpupower-gui/default.nix new file mode 100644 index 00000000000..2fcc55e14cb --- /dev/null +++ b/pkgs/os-specific/linux/cpupower-gui/default.nix @@ -0,0 +1,93 @@ +{ lib +, stdenv +, fetchFromGitHub +, buildPythonApplication +, appstream-glib +, dbus-python +, desktop-file-utils +, gettext +, glib +, gobject-introspection +, gtk3 +, hicolor-icon-theme +, libappindicator +, libhandy +, meson +, ninja +, pkg-config +, pygobject3 +, pyxdg +, systemd +, wrapGAppsHook +}: + +buildPythonApplication rec { + pname = "cpupower-gui"; + version = "1.0.0"; + + # This packages doesn't have a setup.py + format = "other"; + + src = fetchFromGitHub { + owner = "vagnum08"; + repo = pname; + rev = "v${version}"; + sha256 = "05lvpi3wgyi741sd8lgcslj8i7yi3wz7jwl7ca3y539y50hwrdas"; + }; + + nativeBuildInputs = [ + appstream-glib + desktop-file-utils # needed for update-desktop-database + gettext + glib # needed for glib-compile-schemas + gobject-introspection # need for gtk namespace to be available + hicolor-icon-theme # needed for postinstall script + meson + ninja + pkg-config + wrapGAppsHook + + # Python packages + dbus-python + libappindicator + pygobject3 + pyxdg + ]; + + buildInputs = [ + glib + gtk3 + libhandy + ]; + + propagatedBuildInputs = [ + dbus-python + libappindicator + pygobject3 + pyxdg + ]; + + mesonFlags = [ + "-Dsystemddir=${placeholder "out"}/lib/systemd" + ]; + + preConfigure = '' + patchShebangs build-aux/meson/postinstall.py + ''; + + strictDeps = false; + dontWrapGApps = true; + + makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; + + postFixup = '' + wrapPythonProgramsIn $out/lib "$out $propagatedBuildInputs" + ''; + + meta = with lib; { + description = "Change the frequency limits of your cpu and its governor"; + homepage = "https://github.com/vagnum08/cpupower-gui/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ unode ]; + }; +} |