diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 7f9b9dd29b46..84899f7f0880 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -15282,6 +15282,11 @@ with self; url = "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-1.24993.tar.gz"; hash = "sha256-ScRDdDsu7+EadoACck9/akxI78lP8806VZ+357aTyWc="; }; + + env = lib.optionalAttrs stdenv.cc.isGNU { + NIX_CFLAGS_COMPILE = "-std=gnu17"; + }; + patches = [ # Fix incompatible function pointer conversion (assigning `GdkNativeWindow` to `guint32`). ../development/perl-modules/Gtk2-fix-incompatible-pointer-conversion.patch