about summary refs log tree commit diff
path: root/pkgs/applications/editors/bviplus
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-11-23 22:30:19 +0000
committerSergei Trofimovich <slyich@gmail.com>2021-11-23 22:31:58 +0000
commit1e31ea1b44a1f54d79e5a6ced74a24dbb6503410 (patch)
tree5090299cfeed350c1cbf0a2677a7a95ed8795ac5 /pkgs/applications/editors/bviplus
parentfbd3124b92cc7ba1b354261c9aba092d2f2b3c20 (diff)
downloadnixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar.gz
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar.bz2
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar.lz
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar.xz
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.tar.zst
nixlib-1e31ea1b44a1f54d79e5a6ced74a24dbb6503410.zip
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);
          |   ^~~~~~~~~
Diffstat (limited to 'pkgs/applications/editors/bviplus')
-rw-r--r--pkgs/applications/editors/bviplus/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/editors/bviplus/default.nix b/pkgs/applications/editors/bviplus/default.nix
index e48a147e6daf..22d15d54f193 100644
--- a/pkgs/applications/editors/bviplus/default.nix
+++ b/pkgs/applications/editors/bviplus/default.nix
@@ -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
   ];