strelka: fix build on gcc-12
Without the change build fails as:
src/c++/lib/calibration/IndelErrorModel.hh💯33: error: 'numeric_limits' is not a member of 'std'
100 | double logErrorRate = -std::numeric_limits<double>::infinity();
| ^~~~~~~~~~~~~~
This commit is contained in:
parent
64891e361b
commit
a92211886b
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{lib, stdenv, fetchFromGitHub, cmake, zlib, python2}:
|
||||
{lib, stdenv, fetchFromGitHub, fetchpatch, cmake, zlib, python2}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "strelka";
|
||||
|
@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1nykbmim1124xh22nrhrsn8xgjb3s2y7akrdapn9sl1gdych4ppf";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Pull pending fix for gcc-12:
|
||||
# https://github.com/Illumina/strelka/pull/204
|
||||
(fetchpatch {
|
||||
name = "limits.patch";
|
||||
url = "https://github.com/Illumina/strelka/commit/98272cd345c6e4c672e6a5b7721204fcac0502d6.patch";
|
||||
hash = "sha256-psBiuN32nvwZ+QX51JQjIdRhEE3k7PfwbkD10ckqvZk=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ zlib python2 ];
|
||||
|
||||
|
|
|
@ -39131,7 +39131,7 @@ with pkgs;
|
|||
|
||||
star = callPackage ../applications/science/biology/star { };
|
||||
|
||||
strelka = callPackage ../applications/science/biology/strelka { stdenv = gcc10StdenvCompat; };
|
||||
strelka = callPackage ../applications/science/biology/strelka { };
|
||||
|
||||
inherit (callPackages ../applications/science/biology/sumatools {})
|
||||
sumalibs
|
||||
|
|
Loading…
Reference in a new issue