1{stdenv, fetchFromGitHub
2, gsasl, gnutls, pkgconfig, cmake, zlib, libtasn1, libgcrypt, gtk3
3# this will not work on non-nixos systems
4, sendmailPath ? "/run/wrappers/bin/sendmail"
5}:
6
7stdenv.mkDerivation rec {
8 name = "vmime-${version}";
9 version = "0.9.2";
10 src = fetchFromGitHub {
11 owner = "kisli";
12 repo = "vmime";
13 rev = "v${version}";
14 sha256 = "1304n50ny2av8bagjpgz55ag0nd7m313akm9bb73abjn6h5nzacv";
15 };
16
17 buildInputs = [ gsasl gnutls zlib libtasn1 libgcrypt gtk3 ];
18 nativeBuildInputs = [ pkgconfig cmake ];
19
20 cmakeFlags = [
21 "-DVMIME_SENDMAIL_PATH=${sendmailPath}"
22 ];
23
24 meta = {
25 homepage = https://www.vmime.org/;
26 description = "Free mail library for C++";
27 license = stdenv.lib.licenses.gpl3;
28 maintainers = with stdenv.lib.maintainers; [viric];
29 platforms = with stdenv.lib.platforms; linux;
30 };
31}