10 gobject-introspection,
13 stdenv.mkDerivation rec {
18 url = "mirror://gnome/sources/gmime/2.6/${pname}-${version}.tar.xz";
19 sha256 = "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi";
31 propagatedBuildInputs = [
38 "--enable-introspection=yes"
40 ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ];
43 substituteInPlace tests/testsuite.c \
44 --replace /bin/rm rm \
45 --replace /bin/mkdir mkdir
47 substituteInPlace tests/test-pkcs7.c \
48 --replace /bin/mkdir mkdir
51 preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
53 if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h
57 nativeCheckInputs = [ gnupg ];
59 enableParallelBuilding = true;
62 homepage = "https://github.com/jstedfast/gmime/";
63 description = "C/C++ library for creating, editing and parsing MIME messages and structures";
64 license = licenses.lgpl21Plus;
66 platforms = platforms.unix;