git.iko.soy/typeable/nixpkgs
on master help sign in
pkgconfig: fix cygwin build
commitbf517c1c16e49f25aca3318ad03335e3b39f2929 authorDavid McFarland <corngood@gmail.com> dateFri 9 Jun 2017, 10:58 (9 years ago) parentf4a2351
2 files changed+14−1
pkgs/development/tools/misc/pkgconfig/2.36.3-not-win32.patch+13 pkgs/development/tools/misc/pkgconfig/default.nix+1−1
pkgs/development/tools/misc/pkgconfig/2.36.3-not-win32.patch+13
@@ -309,3 +309,16 @@
309309 # else
310310
311311 /* On old systems which lack it, use setlocale or getenv. */
312+diff --git a/glib/gtypes.h b/glib/gtypes.h
313+index c18e0bf..816685a 100644
314+--- a/glib/glib/gtypes.h
315++++ b/glib/glib/gtypes.h
316+@@ -462,7 +462,7 @@ G_END_DECLS
317+ * properly get exported in Windows DLLs.
318+ */
319+ #ifndef GLIB_VAR
320+-# ifdef G_PLATFORM_WIN32
321++# ifdef G_OS_WIN32
322+ # ifdef GLIB_STATIC_COMPILATION
323+ # define GLIB_VAR extern
324+ # else /* !GLIB_STATIC_COMPILATION */
pkgs/development/tools/misc/pkgconfig/default.nix+1−1
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626 configureFlags = [ "--with-internal-glib" ]
2727 ++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ];
2828
29− postInstall = ''rm "$out"/bin/*-pkg-config''; # clean the duplicate file
29+ postInstall = ''rm -f "$out"/bin/*-pkg-config''; # clean the duplicate file
3030
3131 meta = {
3232 description = "A tool that allows packages to find out information about other packages";