1 { lib, gccStdenv, fetchFromGitLab, zlib }:
6 description = "Fast and exact comparison and clustering of sequences";
7 homepage = "https://metabarcoding.org/sumatra";
8 maintainers = [ maintainers.bzizou ];
9 platforms = platforms.unix;
15 sumalibs = stdenv.mkDerivation rec {
18 src = fetchFromGitLab {
19 domain = "git.metabarcoding.org";
22 rev = "sumalib_v${version}";
23 sha256 = "0hwkrxzfz7m5wdjvmrhkjg8kis378iaqr5n4nhdhkwwhn8x1jn5a";
25 makeFlags = [ "PREFIX=$(out)" ];
30 sumatra = stdenv.mkDerivation rec {
33 src = fetchFromGitLab {
34 domain = "git.metabarcoding.org";
37 rev = "${pname}_v${version}";
38 sha256 = "1bbpbdkshdc3xffqnr1qfy8qk64ldsmdc3s8mrcrlx132rgbi5f6";
40 buildInputs = [ sumalibs zlib ];
42 "LIBSUMA=${sumalibs}/lib/libsuma.a"
43 "LIBSUMAPATH=-L${sumalibs}"
50 sumaclust = stdenv.mkDerivation rec {
53 src = fetchFromGitLab {
54 domain = "git.metabarcoding.org";
57 rev = "${pname}_v${version}";
58 sha256 = "0x8yi3k3jxhmv2krp4rcjlj2f9zg0qrk7gx4kpclf9c3yxgsgrds";
60 buildInputs = [ sumalibs ];
62 "LIBSUMA=${sumalibs}/lib/libsuma.a"
63 "LIBSUMAPATH=-L${sumalibs}"