Merge pull request #222660 from natsukium/hh-suite/init
This commit is contained in:
commit
9bc9cfe51d
2 changed files with 41 additions and 0 deletions
37
pkgs/applications/science/biology/hh-suite/default.nix
Normal file
37
pkgs/applications/science/biology/hh-suite/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue