waylyrics: 0.3.16 -> 0.3.20 (#364626)
[NixPkgs.git] / pkgs / applications / science / biology / sumatools / default.nix
blobfc07cd661c5641541875bac8b6d2d91b41b13db1
2   lib,
3   gccStdenv,
4   fetchFromGitLab,
5   zlib,
6 }:
8 let
9   stdenv = gccStdenv;
10   meta = with lib; {
11     description = "Fast and exact comparison and clustering of sequences";
12     homepage = "https://metabarcoding.org/sumatra";
13     maintainers = [ maintainers.bzizou ];
14     platforms = platforms.unix;
15   };
18 rec {
20   # Suma library
21   sumalibs = stdenv.mkDerivation rec {
22     version = "1.0.34";
23     pname = "sumalibs";
24     src = fetchFromGitLab {
25       domain = "git.metabarcoding.org";
26       owner = "obitools";
27       repo = pname;
28       rev = "sumalib_v${version}";
29       sha256 = "0hwkrxzfz7m5wdjvmrhkjg8kis378iaqr5n4nhdhkwwhn8x1jn5a";
30     };
31     makeFlags = [ "PREFIX=$(out)" ];
32     inherit meta;
33   };
35   # Sumatra
36   sumatra = stdenv.mkDerivation rec {
37     version = "1.0.34";
38     pname = "sumatra";
39     src = fetchFromGitLab {
40       domain = "git.metabarcoding.org";
41       owner = "obitools";
42       repo = pname;
43       rev = "${pname}_v${version}";
44       sha256 = "1bbpbdkshdc3xffqnr1qfy8qk64ldsmdc3s8mrcrlx132rgbi5f6";
45     };
46     buildInputs = [
47       sumalibs
48       zlib
49     ];
50     makeFlags = [
51       "LIBSUMA=${sumalibs}/lib/libsuma.a"
52       "LIBSUMAPATH=-L${sumalibs}"
53       "PREFIX=$(out)"
54     ];
55     inherit meta;
56   };
58   # Sumaclust
59   sumaclust = stdenv.mkDerivation rec {
60     version = "1.0.34";
61     pname = "sumaclust";
62     src = fetchFromGitLab {
63       domain = "git.metabarcoding.org";
64       owner = "obitools";
65       repo = pname;
66       rev = "${pname}_v${version}";
67       sha256 = "0x8yi3k3jxhmv2krp4rcjlj2f9zg0qrk7gx4kpclf9c3yxgsgrds";
68     };
69     buildInputs = [ sumalibs ];
70     makeFlags = [
71       "LIBSUMA=${sumalibs}/lib/libsuma.a"
72       "LIBSUMAPATH=-L${sumalibs}"
73       "PREFIX=$(out)"
74     ];
75     inherit meta;
76   };