11{ stdenv
22, lib
33, fetchurl
4+ , fetchpatch2
45, glib
56, flex
67, bison
2223, nixStoreDir ? builtins . storeDir
2324, x11Support ? true
2425, testers
26+ , propagateFullGlib ? true
2527} :
2628
2729# now that gobject-introspection creates large .gir files (eg gtk3 case)
3941in
4042stdenv . mkDerivation ( finalAttrs : {
4143 pname = "gobject-introspection" ;
42- version = "1.78 .1" ;
44+ version = "1.79 .1" ;
4345
4446 # outputs TODO: share/gobject-introspection-1.0/tests is needed during build
4547 # by pygobject3 (and maybe others), but it's only searched in $out
@@ -48,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
4850
4951 src = fetchurl {
5052 url = "mirror://gnome/sources/gobject-introspection/${ lib . versions . majorMinor finalAttrs . version } /gobject-introspection-${ finalAttrs . version } .tar.xz" ;
51- sha256 = "vXur2Zr3JY52gZ5Fukprw5lgj+di2D/ePKwDPFCEG7Q =" ;
53+ sha256 = "+A6jPuBcpI+5l5UrtGExz73TdR9/XaBoiIc5y+stVEM =" ;
5254 } ;
5355
5456 patches = [
@@ -59,6 +61,13 @@ stdenv.mkDerivation (finalAttrs: {
5961 src = ./absolute_shlib_path.patch ;
6062 inherit nixStoreDir ;
6163 } )
64+
65+ # girepository: Skip GIRepository versions not matching GIRepository-2.0
66+ # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/441
67+ ( fetchpatch2 {
68+ url = "https://gitlab.gnome.org/GNOME/gobject-introspection/-/commit/171f1804dc76dfcc2857e809d49a2290b15612c4.patch" ;
69+ hash = "sha256-rAOuz8EB5bACG+5tgvA0Z/vGkFBPNUqryXFNNUjlOEc=" ;
70+ } )
6271 ] ++ lib . optionals x11Support [
6372 # Hardcode the cairo shared library path in the Cairo gir shipped with this package.
6473 # https://github.com/NixOS/nixpkgs/issues/34080
@@ -95,7 +104,7 @@ stdenv.mkDerivation (finalAttrs: {
95104
96105 propagatedBuildInputs = [
97106 libffi
98- glib'
107+ ( if propagateFullGlib then glib else glib' )
99108 ] ;
100109
101110 mesonFlags = [
0 commit comments