Merge pull request #222660 from natsukium/hh-suite/init

This commit is contained in:
Sandro 2023-04-23 23:42:38 +02:00 committed by GitHub
commit 9bc9cfe51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, xxd
, enableMpi ? false
, mpi
, openmp
}:
stdenv.mkDerivation rec {
pname = "hh-suite";
version = "3.3.0";
src = fetchFromGitHub {
owner = "soedinglab";
repo = "hh-suite";
rev = "v${version}";
hash = "sha256-kjNqJddioCZoh/cZL3YNplweIGopWIGzCYQOnKDqZmw=";
};
nativeBuildInputs = [ cmake xxd ];
cmakeFlags = lib.optional stdenv.hostPlatform.isx86 "-DHAVE_SSE2=1"
++ lib.optional stdenv.hostPlatform.isAarch "-DHAVE_ARM8=1"
++ lib.optional stdenv.hostPlatform.avx2Support "-DHAVE_AVX2=1"
++ lib.optional stdenv.hostPlatform.sse4_1Support "-DHAVE_SSE4_1=1";
buildInputs = lib.optional stdenv.cc.isClang openmp
++ lib.optional enableMpi mpi;
meta = with lib; {
description = "Remote protein homology detection suite";
homepage = "https://github.com/soedinglab/hh-suite";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ natsukium ];
platforms = platforms.unix;
};
}

View file

@ -37147,6 +37147,10 @@ with pkgs;
flywheel-cli = callPackage ../applications/science/biology/flywheel-cli { };
hh-suite = callPackage ../applications/science/biology/hh-suite {
inherit (llvmPackages) openmp;
};
hisat2 = callPackage ../applications/science/biology/hisat2 { };
htslib = callPackage ../development/libraries/science/biology/htslib { };