Merge pull request #147499 from trofi/fix-samtools-for-ncurses-6.3

This commit is contained in:
Sandro 2021-11-29 20:33:45 +01:00 committed by GitHub
commit ebdd276b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
{ lib, stdenv, fetchurl, fetchpatch, zlib, htslib, perl, ncurses ? null }:
stdenv.mkDerivation rec {
pname = "samtools";
@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-YWyi4FHMgAmh6cAc/Yx8r4twkW3f9m87dpFAeUZfjGA=";
};
patches = [
# Pull upstream patch for ncurses-6.3 support
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/samtools/samtools/commit/396ef20eb0854d6b223c3223b60bb7efe42301f7.patch";
sha256 = "sha256-p0l9ymXK9nqL2w8EytbW+qeaI7dD86IQgIVxacBj838=";
})
];
nativeBuildInputs = [ perl ];
buildInputs = [ zlib ncurses htslib ];