12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "032nva6iiwmw59gjipm1mv0xlcckhxsf45mc2qbnv19lbis0q22i";
23 propagatedBuildInputs = [
26 perlPackages.ImageMagick
33 buildInputs = lib.optional stdenv.cc.isClang openmp;
36 "CC=${stdenv.cc.targetPrefix}c++" # remove once https://github.com/weizhongli/cdhit/pull/114 is merged
40 preInstall = "mkdir -p $out/bin";
43 wrapProgram $out/bin/FET.pl --prefix PERL5LIB : $PERL5LIB
44 wrapProgram $out/bin/plot_2d.pl --prefix PERL5LIB : $PERL5LIB
45 wrapProgram $out/bin/clstr_list_sort.pl --prefix PERL5LIB : $PERL5LIB
48 description = "Clustering and comparing protein or nucleotide sequences";
49 homepage = "http://weizhongli-lab.org/cd-hit/";
50 license = licenses.gpl2;
51 maintainers = [ maintainers.bzizou ];
52 platforms = platforms.unix;