1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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);
          |   ^~~~~~~~~
This commit is contained in:
Sergei Trofimovich 2021-11-23 22:30:19 +00:00
parent fbd3124b92
commit 1e31ea1b44

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, ncurses }:
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
stdenv.mkDerivation rec {
pname = "bviplus";
@ -9,6 +9,18 @@ stdenv.mkDerivation rec {
sha256 = "08q2fdyiirabbsp5qpn3v8jxp4gd85l776w6gqvrbjwqa29a8arg";
};
patches = [
# Fix pending upstream inclusion for ncurses-6.3 support:
# https://sourceforge.net/p/bviplus/bugs/7/
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://sourceforge.net/p/bviplus/bugs/7/attachment/bviplus-ncurses-6.2.patch";
sha256 = "1g3s2fdly3qliy67f3dlb12a03a21zkjbya6gap4mqxhyyjbp46x";
# svn patch, rely on prefix added by fetchpatch:
extraPrefix = "";
})
];
buildInputs = [
ncurses
];