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