diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2021-11-18 07:56:30 +0000 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2021-11-18 09:33:30 +0000 |
commit | cb22860dfb7981399b1d6fe754d88815372911b2 (patch) | |
tree | 8936659d5fc9529d03fc304e33024b6857a7adcf /pkgs/applications/networking/p2p | |
parent | 4ff9231d41f777c37e0a936782727f56f77e98d5 (diff) |
ncdc: pull upstream ncurses-6.3 fix
Without the change the build fails on ncurses-6.3 as: src/uit_dl.c:227:25: error: format not a string literal and no format arguments [-Werror=format-security] 227 | mvprintw(bottom, 0, hash); | ^~~~
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/ncdc/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/networking/p2p/ncdc/default.nix b/pkgs/applications/networking/p2p/ncdc/default.nix index dd7f4a7bb60fe..053f1d67882b4 100644 --- a/pkgs/applications/networking/p2p/ncdc/default.nix +++ b/pkgs/applications/networking/p2p/ncdc/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, ncurses, zlib, bzip2, sqlite, pkg-config, glib, gnutls }: +{ lib, stdenv, fetchurl, fetchpatch, ncurses, zlib, bzip2, sqlite, pkg-config, glib, gnutls }: stdenv.mkDerivation rec { pname = "ncdc"; @@ -9,6 +9,15 @@ stdenv.mkDerivation rec { sha256 = "1bdgqd07f026qk6vpbxqsin536znd33931m3b4z44prlm9wd6pyi"; }; + patches = [ + # Upstream fix for ncurses-6.3 support: + (fetchpatch { + name = "ncurses-6.3.patch"; + url = "https://g.blicky.net/ncdc.git/patch/?id=4126dd51e90deb9e22dfd139cc4518a7812fcad6"; + sha256 = "13hqkmhmbazj6cllb5b2ccgf51vsn5lri7jqkqc5xwivgcisfrij"; + }) + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ ncurses zlib bzip2 sqlite glib gnutls ]; |