Skip to content

Commit

Permalink
libsecret: Use env.prepend() for test environment setup
Browse files Browse the repository at this point in the history
Starting from GLib / gobject-introspection 2.80, GLib introspection data
is provided by GLib itself instead of gobject-introspection. This causes
tests failures because env.set() resets the environment and GLib is missing
from GI_TYPELIB_PATH:

gi.RepositoryError: Typelib file for namespace 'Gio', version '2.0' not found
  • Loading branch information
bobby285271 authored and amaxine committed Apr 22, 2024
1 parent 568f79a commit 70aad63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/libraries/libsecret/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchurl
, fetchpatch2
, glib
, meson
, ninja
Expand Down Expand Up @@ -33,6 +34,14 @@ stdenv.mkDerivation rec {
hash = "sha256-Fj0I14O+bUq5qXnOtaT+y8HZZg08NBaMWBMBzVORKyA=";
};

patches = [
# https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/141
(fetchpatch2 {
url = "https://gitlab.gnome.org/GNOME/libsecret/-/commit/208989323211c756dff690115e5cbde5ef7491ce.patch";
hash = "sha256-DtRbqyyoMttEYf6B16m9O72Yjurv6rpbnqH7AlrAU4k=";
})
];

depsBuildBuild = [
pkg-config
];
Expand Down

0 comments on commit 70aad63

Please sign in to comment.