2022-11-02 22:02:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, xxd
|
|
|
|
, perl
|
|
|
|
, installShellFiles
|
|
|
|
, enableAvx2 ? stdenv.hostPlatform.avx2Support
|
|
|
|
, enableSse4_1 ? stdenv.hostPlatform.sse4_1Support
|
|
|
|
, enableMpi ? false
|
|
|
|
, mpi
|
|
|
|
, openmp
|
|
|
|
, zlib
|
|
|
|
, bzip2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mmseqs2";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "15-6f452";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soedinglab";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-L+zOWrGkCLz/wqpBuji8H4/93sDFpcfnDOE8FHq1j84=";
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake xxd perl installShellFiles ];
|
|
|
|
cmakeFlags =
|
|
|
|
lib.optional enableAvx2 "-DHAVE_AVX2=1"
|
|
|
|
++ lib.optional enableSse4_1 "-DHAVE_SSE4_1=1"
|
|
|
|
++ lib.optional enableMpi "-DHAVE_MPI=1";
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
lib.optionals stdenv.cc.isClang [ openmp zlib bzip2 ]
|
|
|
|
++ lib.optional enableMpi mpi;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --bash --cmd mmseqs $out/util/bash-completion.sh
|
|
|
|
rm -r $out/util/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ultra fast and sensitive sequence search and clustering suite";
|
|
|
|
homepage = "https://mmseqs.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|