2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, zlib, perl, perlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "4.8.1";
|
|
|
|
pname = "cd-hit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weizhongli";
|
|
|
|
repo = "cdhit";
|
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "032nva6iiwmw59gjipm1mv0xlcckhxsf45mc2qbnv19lbis0q22i";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ perl perlPackages.TextNSP perlPackages.PerlMagick ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ zlib makeWrapper ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)/bin" ];
|
|
|
|
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/FET.pl --prefix PERL5LIB : $PERL5LIB
|
|
|
|
wrapProgram $out/bin/plot_2d.pl --prefix PERL5LIB : $PERL5LIB
|
|
|
|
wrapProgram $out/bin/clstr_list_sort.pl --prefix PERL5LIB : $PERL5LIB
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Clustering and comparing protein or nucleotide sequences";
|
|
|
|
homepage = "http://weizhongli-lab.org/cd-hit/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.bzizou ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|