git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #147499 from trofi/fix-samtools-for-ncurses-6.3
commitebdd276b68505a011502546fd9510167bd2d2bdc authorSandro <sandro.jaeckel@gmail.com> dateMon 29 Nov 2021, 20:33 (5 years ago) parent8ecf2d68147fb6
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 ];