diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2021-11-18 22:10:08 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2021-11-18 22:16:38 +0000 |
commit | 51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31 (patch) | |
tree | 9668e803521efcb621b3d4d72463cf80dbe9589d /pkgs/os-specific/linux/powertop | |
parent | a09bdaae497076c05cfd8faa0e8db16f9dc44c59 (diff) | |
download | nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar.gz nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar.bz2 nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar.lz nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar.xz nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.tar.zst nixpkgs-51b4f7aebc2c1eebb12b2a2ecffa680a44d98b31.zip |
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); | ^~~~~~
Diffstat (limited to 'pkgs/os-specific/linux/powertop')
-rw-r--r-- | pkgs/os-specific/linux/powertop/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/powertop/default.nix b/pkgs/os-specific/linux/powertop/default.nix index b8a0487bc7e..2b498d9ddc9 100644 --- a/pkgs/os-specific/linux/powertop/default.nix +++ b/pkgs/os-specific/linux/powertop/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, gettext, libnl, ncurses, pciutils +{ lib, stdenv, fetchFromGitHub, fetchpatch, gettext, libnl, ncurses, pciutils , pkg-config, zlib, autoreconfHook }: stdenv.mkDerivation rec { @@ -12,6 +12,15 @@ stdenv.mkDerivation rec { sha256 = "1zkr2y5nb1nr22nq8a3zli87iyfasfq6489p7h1k428pv8k45w4f"; }; + patches = [ + # Pull upstream patch for ncurses-6.3 compatibility + (fetchpatch { + name = "ncurses-6.3.patch"; + url = "https://github.com/fenrus75/powertop/commit/9ef1559a1582f23d599c149601c3a8e06809296c.patch"; + sha256 = "0qx69f3bwhxgsga9nas8lgrclf1rxvr7fq7fd2n8dv3x4lsb46j1"; + }) + ]; + outputs = [ "out" "man" ]; nativeBuildInputs = [ pkg-config autoreconfHook ]; |