@@ -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 ];