lol

gmime2,gmime3: fix cross by copying iconv-detect.h from void-packages

https://github.com/void-linux/void-packages/tree/master/srcpkgs/gmime/files

https://github.com/jstedfast/gmime/blob/1137d672654a1e8fdbda52c7e02482c810d237af/configure.ac#L298-L322

Artturin e8d9eb71 e6b244b4

+35 -4
+7 -1
pkgs/development/libraries/gmime/2.nix
··· 13 14 nativeBuildInputs = [ pkg-config gobject-introspection ]; 15 propagatedBuildInputs = [ glib zlib libgpg-error ]; 16 - configureFlags = [ "--enable-introspection=yes" ]; 17 18 postPatch = '' 19 substituteInPlace tests/testsuite.c \ ··· 22 23 substituteInPlace tests/test-pkcs7.c \ 24 --replace /bin/mkdir mkdir 25 ''; 26 27 nativeCheckInputs = [ gnupg ];
··· 13 14 nativeBuildInputs = [ pkg-config gobject-introspection ]; 15 propagatedBuildInputs = [ glib zlib libgpg-error ]; 16 + configureFlags = [ 17 + "--enable-introspection=yes" 18 + ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ]; 19 20 postPatch = '' 21 substituteInPlace tests/testsuite.c \ ··· 24 25 substituteInPlace tests/test-pkcs7.c \ 26 --replace /bin/mkdir mkdir 27 + ''; 28 + 29 + preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 30 + cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h 31 ''; 32 33 nativeCheckInputs = [ gnupg ];
+16 -3
pkgs/development/libraries/gmime/3.nix
··· 12 13 outputs = [ "out" "dev" ]; 14 15 - buildInputs = [ vala gobject-introspection zlib gpgme libidn2 libunistring ]; 16 - nativeBuildInputs = [ pkg-config ]; 17 propagatedBuildInputs = [ glib ]; 18 configureFlags = [ 19 "--enable-introspection=yes" 20 "--enable-vala=yes" 21 - ]; 22 23 postPatch = '' 24 substituteInPlace tests/testsuite.c \ 25 --replace /bin/rm rm 26 ''; 27 28 nativeCheckInputs = [ gnupg ];
··· 12 13 outputs = [ "out" "dev" ]; 14 15 + nativeBuildInputs = [ pkg-config gobject-introspection vala ]; 16 + buildInputs = [ 17 + zlib 18 + gpgme 19 + libidn2 20 + libunistring 21 + vala # for share/vala/Makefile.vapigen 22 + ]; 23 propagatedBuildInputs = [ glib ]; 24 configureFlags = [ 25 "--enable-introspection=yes" 26 "--enable-vala=yes" 27 + ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ]; 28 29 postPatch = '' 30 substituteInPlace tests/testsuite.c \ 31 --replace /bin/rm rm 32 + ''; 33 + 34 + preConfigure = '' 35 + PKG_CONFIG_VAPIGEN_VAPIGEN="$(type -p vapigen)" 36 + export PKG_CONFIG_VAPIGEN_VAPIGEN 37 + '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 38 + cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h 39 ''; 40 41 nativeCheckInputs = [ gnupg ];
+6
pkgs/development/libraries/gmime/iconv-detect.h
···
··· 1 + /* This is an auto-generated header, DO NOT EDIT! */ 2 + 3 + #define ICONV_ISO_INT_FORMAT "iso-%u-%u" 4 + #define ICONV_ISO_STR_FORMAT "iso-%u-%s" 5 + #define ICONV_SHIFT_JIS "shift-jis" 6 + #define ICONV_10646 "iso-10646"
+6
pkgs/development/libraries/gmime/musl-iconv-detect.h
···
··· 1 + /* This is an auto-generated header, DO NOT EDIT! */ 2 + 3 + #define ICONV_ISO_INT_FORMAT "iso-%u-%u" 4 + #define ICONV_ISO_STR_FORMAT "iso-%u-%s" 5 + #define ICONV_SHIFT_JIS "shift-jis" 6 + #define ICONV_10646 "UCS-4BE"