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

Without the fix build on ncurses-6.3 fails as: bam_tview_curses.c:88:5: error: format not a string literal and no format arguments [-Werror=format-security] 88 | mvprintw(y,x,str); | ^~~~~~~~

commit8147fb683c111f40da54d245c965517bd2885b43 authorSergei Trofimovich <slyich@gmail.com> dateFri 26 Nov 2021, 12:56 (5 years ago) parent8efe977
1 file changed+10−1
pkgs/applications/science/biology/samtools/default.nix+10−1
pkgs/applications/science/biology/samtools/default.nix+10−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
1+{ lib, stdenv, fetchurl, fetchpatch, zlib, htslib, perl, ncurses ? null }:
22
33stdenv.mkDerivation rec {
44 pname = "samtools";
@@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
99 sha256 = "sha256-YWyi4FHMgAmh6cAc/Yx8r4twkW3f9m87dpFAeUZfjGA=";
1010 };
1111
12+ patches = [
13+ # Pull upstream patch for ncurses-6.3 support
14+ (fetchpatch {
15+ name = "ncurses-6.3.patch";
16+ url = "https://github.com/samtools/samtools/commit/396ef20eb0854d6b223c3223b60bb7efe42301f7.patch";
17+ sha256 = "sha256-p0l9ymXK9nqL2w8EytbW+qeaI7dD86IQgIVxacBj838=";
18+ })
19+ ];
20+
1221 nativeBuildInputs = [ perl ];
1322
1423 buildInputs = [ zlib ncurses htslib ];