summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/vm/vmime/package.nix
blob: 238e8bc41ee9f2b511e3e06b5e93e8545adc0e5d (plain)
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
{
  lib,
  stdenv,
  fetchFromGitHub,
  gsasl,
  gnutls,
  pkg-config,
  cmake,
  zlib,
  libtasn1,
  libgcrypt,
  gtk3,
  # this will not work on non-nixos systems
  sendmailPath ? "/run/wrappers/bin/sendmail",
}:

stdenv.mkDerivation {
  pname = "vmime";
  # XXX: using unstable rev for now to comply with the removal of
  # deprecated symbols in the latest release of gsasl
  version = "0-unstable-2025-07-21";
  src = fetchFromGitHub {
    owner = "kisli";
    repo = "vmime";
    rev = "7046a4360bbeea21d1d8b5cfa4589bb4df7f980d";
    sha256 = "sha256-cwilSnybH5E0wq384lPnqAjPkQTLtlWS8NhmoFE/13k=";
  };

  buildInputs = [
    gsasl
    gnutls
    zlib
    libtasn1
    libgcrypt
    gtk3
  ];
  nativeBuildInputs = [
    pkg-config
    cmake
  ];

  cmakeFlags = [
    "-DVMIME_SENDMAIL_PATH=${sendmailPath}"
  ];

  meta = {
    homepage = "https://www.vmime.org/";
    description = "Free mail library for C++";
    license = lib.licenses.gpl3;
    maintainers = [ ];
    platforms = with lib.platforms; linux;
  };
}