Skip to content

Commit 14436ce

Browse files
committed
1 parent a746641 commit 14436ce

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

pkgs/development/libraries/glib/default.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ let
4949
ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
5050
'';
5151

52-
# Avoid introducing cairo, which enables gobjectSupport by default.
53-
gobject-introspection' = buildPackages.gobject-introspection.override { x11Support = false; };
52+
gobject-introspection' = buildPackages.gobject-introspection.override {
53+
propagateFullGlib = false;
54+
# Avoid introducing cairo, which enables gobjectSupport by default.
55+
x11Support = false;
56+
};
5457

5558
librarySuffix = if (stdenv.targetPlatform.extensions.library == ".so") then "2.0.so.0"
5659
else if (stdenv.targetPlatform.extensions.library == ".dylib") then "2.0.0.dylib"

pkgs/development/libraries/gobject-introspection/default.nix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ stdenv
22
, lib
33
, fetchurl
4+
, fetchpatch2
45
, glib
56
, flex
67
, bison
@@ -22,6 +23,7 @@
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)
@@ -39,7 +41,7 @@ let
3941
in
4042
stdenv.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

Comments
 (0)