2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub
|
|
|
|
, gsasl, gnutls, pkg-config, cmake, zlib, libtasn1, libgcrypt, gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
# this will not work on non-nixos systems
|
|
|
|
, sendmailPath ? "/run/wrappers/bin/sendmail"
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vmime";
|
2022-09-09 14:08:57 +00:00
|
|
|
# XXX: using unstable rev for now to comply with the removal of
|
|
|
|
# deprecated symbols in the latest release of gsasl
|
|
|
|
version = "unstable-2022-03-26";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kisli";
|
|
|
|
repo = "vmime";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "fc69321d5304c73be685c890f3b30528aadcfeaf";
|
|
|
|
sha256 = "sha256-DUcGQcT7hp5Rs2Z5C8wo+3BYwWqED0KrF3h3vgLiiow=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gsasl gnutls zlib libtasn1 libgcrypt gtk3 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DVMIME_SENDMAIL_PATH=${sendmailPath}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.vmime.org/";
|
|
|
|
description = "Free mail library for C++";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|