aboutsummaryrefslogtreecommitdiff
path: root/app/email/build/sogo-next/default.nix
blob: b0abace4e0e3aac498a58b24495118708f7260d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ pkgs ? import <nixpkgs> {}}:

rec {
  gnustep-make = pkgs.llvmPackages.stdenv.mkDerivation rec {
    pname = "gnustep-make";
    version = "2.9.0";

    src = pkgs.fetchurl {
      url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-${version}.tar.gz";
      sha256 = "a0b066c11257879c7c85311dea69c67f6dc741ef339db6514f85b64992c40d2a";
    };

    buildInputs = [
      pkgs.gzip
      pkgs.which
    ];
  };

  gnustep-base = pkgs.llvmPackages.stdenv.mkDerivation rec {
    pname = "gnustep-base";
    version = "1.28.0";

    /*configurePhase = "gcc -v; which cc1obj; false";*/

    buildInputs = [
      pkgs.pkg-config
      pkgs.gnustep.libobjc
      pkgs.libffi
      pkgs.libbfd
      pkgs.libxml2
      pkgs.libxslt
      pkgs.gnutls
      pkgs.icu
      gnustep-make
    ];

    src = pkgs.fetchurl {
      url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-${version}.tar.gz";
      sha256 = "c7d7c6e64ac5f5d0a4d5c4369170fc24ed503209e91935eb0e2979d1601039ed";
    };
  };

  sope = pkgs.stdenv.mkDerivation rec {
    pname = "sope";
    version = "5.2.0";

    src = pkgs.fetchurl {
      url = "https://github.com/inverse-inc/sope/archive/refs/tags/SOPE-${version}.tar.gz";
      sha256 = "e98050007cf3ff0a9d97578bcb3155c88b4ac9f69d94f95fe4c88bc5efff31c7";
    };
  };

  sogo = pkgs.stdenv.mkDerivation rec {
    pname = "sogo";
    version = "5.2.0";

    buildInputs = [
      gnustep-base
    ];

    src = pkgs.fetchurl {
      url = "https://github.com/inverse-inc/sogo/archive/refs/tags/SOGo-${version}.tar.gz";
      sha256 = "0ed288444e625ecdc54543991c6855b5e296a6d2d5d8348169e68447f238bc7e";
    };
  };
}