git.iko.soy/typeable/nixpkgs
on master help sign in
bviplus: pull pending upstream inclusion fix for ncurses-6.3

Without the fix build on ncurses-6.3 fails as: creadline.c:71:3: error: format not a string literal and no format arguments [-Werror=format-security] 71 | mvwprintw(w, y, x, prompt); | ^~~~~~~~~

commit1e31ea1b44a1f54d79e5a6ced74a24dbb6503410 authorSergei Trofimovich <slyich@gmail.com> dateTue 23 Nov 2021, 22:30 (5 years ago) parentfbd3124
1 file changed+13−1
pkgs/applications/editors/bviplus/default.nix+13−1
pkgs/applications/editors/bviplus/default.nix+13−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, ncurses }:
1+{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
22
33stdenv.mkDerivation rec {
44 pname = "bviplus";
@@ -9,6 +9,18 @@ stdenv.mkDerivation rec {
99 sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg";
1010 };
1111
12+ patches = [
13+ # Fix pending upstream inclusion for ncurses-6.3 support:
14+ # https://sourceforge.net/p/bviplus/bugs/7/
15+ (fetchpatch {
16+ name = "ncurses-6.3.patch";
17+ url = "https://sourceforge.net/p/bviplus/bugs/7/attachment/bviplus-ncurses-6.2.patch";
18+ sha256 = "1g3s2fdly3qliy67f3dlb12a03a21zkjbya6gap4mqxhyyjbp46x";
19+ # svn patch, rely on prefix added by fetchpatch:
20+ extraPrefix = "";
21+ })
22+ ];
23+
1224 buildInputs = [
1325 ncurses
1426 ];