powertop: pull upstream fix for ncurses-6.3

Without the fix build on ncurses-6.3 fails as:

lib.cpp:586:24: error: format not a string literal and no format arguments [Werror=format-security]
586 | mvprintw(1, 0, notify);
| ^~~~~~

+10 -1
+10 -1
pkgs/os-specific/linux/powertop/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, gettext, libnl, ncurses, pciutils 2 , pkg-config, zlib, autoreconfHook }: 3 4 stdenv.mkDerivation rec { ··· 11 rev = "v${version}"; 12 sha256 = "1zkr2y5nb1nr22nq8a3zli87iyfasfq6489p7h1k428pv8k45w4f"; 13 }; 14 15 outputs = [ "out" "man" ]; 16
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, gettext, libnl, ncurses, pciutils 2 , pkg-config, zlib, autoreconfHook }: 3 4 stdenv.mkDerivation rec { ··· 11 rev = "v${version}"; 12 sha256 = "1zkr2y5nb1nr22nq8a3zli87iyfasfq6489p7h1k428pv8k45w4f"; 13 }; 14 + 15 + patches = [ 16 + # Pull upstream patch for ncurses-6.3 compatibility 17 + (fetchpatch { 18 + name = "ncurses-6.3.patch"; 19 + url = "https://github.com/fenrus75/powertop/commit/9ef1559a1582f23d599c149601c3a8e06809296c.patch"; 20 + sha256 = "0qx69f3bwhxgsga9nas8lgrclf1rxvr7fq7fd2n8dv3x4lsb46j1"; 21 + }) 22 + ]; 23 24 outputs = [ "out" "man" ]; 25