1 {lib, stdenv, fetchFromGitHub
2 , gsasl, gnutls, pkg-config, cmake, zlib, libtasn1, libgcrypt, gtk3
3 # this will not work on non-nixos systems
4 , sendmailPath ? "/run/wrappers/bin/sendmail"
7 stdenv.mkDerivation rec {
9 # XXX: using unstable rev for now to comply with the removal of
10 # deprecated symbols in the latest release of gsasl
11 version = "unstable-2022-03-26";
12 src = fetchFromGitHub {
15 rev = "fc69321d5304c73be685c890f3b30528aadcfeaf";
16 sha256 = "sha256-DUcGQcT7hp5Rs2Z5C8wo+3BYwWqED0KrF3h3vgLiiow=";
19 buildInputs = [ gsasl gnutls zlib libtasn1 libgcrypt gtk3 ];
20 nativeBuildInputs = [ pkg-config cmake ];
23 "-DVMIME_SENDMAIL_PATH=${sendmailPath}"
27 homepage = "https://www.vmime.org/";
28 description = "Free mail library for C++";
29 license = lib.licenses.gpl3;
31 platforms = with lib.platforms; linux;