@@ -1,6 +1,7 @@
11{ lib
22, stdenv
33, fetchFromGitHub
4+, fetchpatch
45, buildPythonApplication
56, appstream-glib
67, dbus-python
@@ -35,6 +36,15 @@ buildPythonApplication rec {
3536 sha256 = "05lvpi3wgyi741sd8lgcslj8i7yi3wz7jwl7ca3y539y50hwrdas";
3637 };
3738
39+ patches = [
40+ # Fix build with 0.61, can be removed on next update
41+ # https://hydra.nixos.org/build/171052557/nixlog/1
42+ (fetchpatch {
43+ url = "https://github.com/vagnum08/cpupower-gui/commit/97f8ac02fe33e412b59d3f3968c16a217753e74b.patch";
44+ sha256 = "XYnpm03kq8JLMjAT73BMCJWlzz40IAuHESm715VV6G0=";
45+ })
46+ ];
47+
3848 nativeBuildInputs = [
3949 appstream-glib
4050 desktop-file-utils # needed for update-desktop-database