Merge pull request #287326 from mfrischknecht/fix-hh-suite-build

hh-suite: fix build on GCC 13
This commit is contained in:
a-n-n-a-l-e-e 2024-02-08 16:19:11 -08:00 committed by GitHub
commit d8e8686e02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, xxd
, enableMpi ? false
@ -18,6 +19,15 @@ stdenv.mkDerivation rec {
hash = "sha256-kjNqJddioCZoh/cZL3YNplweIGopWIGzCYQOnKDqZmw=";
};
patches = [
# Should be removable as soon as this upstream PR is merged: https://github.com/soedinglab/hh-suite/pull/357
(fetchpatch {
name = "fix-gcc13-build-issues.patch";
url = "https://github.com/soedinglab/hh-suite/commit/cec47cba5dcd580e668b1ee507c9282fbdc8e7d7.patch";
hash = "sha256-Msdmj9l8voPYXK0SSwUA6mEbFLBhTjjE/Kjp0VL4Kf4=";
})
];
nativeBuildInputs = [ cmake xxd ];
cmakeFlags = lib.optional stdenv.hostPlatform.isx86 "-DHAVE_SSE2=1"
++ lib.optional stdenv.hostPlatform.isAarch "-DHAVE_ARM8=1"