wlroots: 0.18.1 -> 0.18.2 (#364488)
[NixPkgs.git] / pkgs / applications / science / biology / hh-suite / default.nix
blob51f12d9ae6eac7cd281529bdcd2ca82d01cb41e1
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7   xxd,
8   enableMpi ? false,
9   mpi,
10   openmp,
12 stdenv.mkDerivation rec {
13   pname = "hh-suite";
14   version = "3.3.0";
16   src = fetchFromGitHub {
17     owner = "soedinglab";
18     repo = "hh-suite";
19     rev = "v${version}";
20     hash = "sha256-kjNqJddioCZoh/cZL3YNplweIGopWIGzCYQOnKDqZmw=";
21   };
23   patches = [
24     # Should be removable as soon as this upstream PR is merged: https://github.com/soedinglab/hh-suite/pull/357
25     (fetchpatch {
26       name = "fix-gcc13-build-issues.patch";
27       url = "https://github.com/soedinglab/hh-suite/commit/cec47cba5dcd580e668b1ee507c9282fbdc8e7d7.patch";
28       hash = "sha256-Msdmj9l8voPYXK0SSwUA6mEbFLBhTjjE/Kjp0VL4Kf4=";
29     })
30   ];
32   nativeBuildInputs = [
33     cmake
34     xxd
35   ];
36   cmakeFlags =
37     lib.optional stdenv.hostPlatform.isx86 "-DHAVE_SSE2=1"
38     ++ lib.optional stdenv.hostPlatform.isAarch "-DHAVE_ARM8=1"
39     ++ lib.optional stdenv.hostPlatform.avx2Support "-DHAVE_AVX2=1"
40     ++ lib.optional stdenv.hostPlatform.sse4_1Support "-DHAVE_SSE4_1=1";
42   buildInputs = lib.optional stdenv.cc.isClang openmp ++ lib.optional enableMpi mpi;
44   meta = with lib; {
45     description = "Remote protein homology detection suite";
46     homepage = "https://github.com/soedinglab/hh-suite";
47     license = licenses.gpl3Plus;
48     maintainers = with maintainers; [ natsukium ];
49     platforms = platforms.unix;
50   };