2021-09-04 20:05:03 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, zlib, gnupg, libgpg-error, gobject-introspection }:
|
2006-05-07 21:58:31 +00:00
|
|
|
|
2010-07-09 09:12:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-15 20:48:46 +00:00
|
|
|
version = "2.6.23";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gmime";
|
2012-08-27 02:53:19 +00:00
|
|
|
|
2006-05-07 21:58:31 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://gnome/sources/gmime/2.6/${pname}-${version}.tar.xz";
|
2017-01-29 16:18:09 +00:00
|
|
|
sha256 = "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi";
|
2010-07-09 09:12:42 +00:00
|
|
|
};
|
2012-08-27 02:53:19 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2012-08-27 02:53:19 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gobject-introspection ];
|
2021-09-04 20:05:03 +00:00
|
|
|
propagatedBuildInputs = [ glib zlib libgpg-error ];
|
2023-03-25 22:45:29 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-introspection=yes"
|
|
|
|
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ];
|
2010-07-09 09:12:42 +00:00
|
|
|
|
2018-08-08 18:32:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/testsuite.c \
|
|
|
|
--replace /bin/rm rm \
|
|
|
|
--replace /bin/mkdir mkdir
|
|
|
|
|
|
|
|
substituteInPlace tests/test-pkcs7.c \
|
|
|
|
--replace /bin/mkdir mkdir
|
|
|
|
'';
|
|
|
|
|
2023-03-25 22:45:29 +00:00
|
|
|
preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
|
|
|
cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h
|
|
|
|
'';
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ gnupg ];
|
2018-08-08 18:32:08 +00:00
|
|
|
|
2013-06-25 16:42:56 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-07-09 09:12:42 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jstedfast/gmime/";
|
2017-08-31 14:37:00 +00:00
|
|
|
description = "A C/C++ library for creating, editing and parsing MIME messages and structures";
|
2017-08-31 15:01:08 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-02-22 15:14:13 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-08-31 15:01:08 +00:00
|
|
|
platforms = platforms.unix;
|
2006-05-07 21:58:31 +00:00
|
|
|
};
|
|
|
|
}
|