lol

geocode-glib: fix installed tests

+30 -2
+13
nixos/tests/installed-tests/geocode-glib.nix
··· 1 + { pkgs, makeInstalledTest, ... }: 2 + 3 + makeInstalledTest { 4 + testConfig = { 5 + i18n.supportedLocales = [ 6 + "en_US.UTF-8/UTF-8" 7 + # The tests require this locale available. 8 + "en_GB.UTF-8/UTF-8" 9 + ]; 10 + }; 11 + 12 + tested = pkgs.geocode-glib; 13 + }
+17 -2
pkgs/development/libraries/geocode-glib/default.nix
··· 1 - { fetchurl 1 + { stdenv 2 2 , lib 3 - , stdenv 3 + , fetchurl 4 + , fetchpatch 4 5 , meson 5 6 , ninja 6 7 , pkg-config ··· 28 29 29 30 patches = [ 30 31 ./installed-tests-path.patch 32 + 33 + # Install data for pi test. 34 + (fetchpatch { 35 + url = "https://gitlab.gnome.org/GNOME/geocode-glib/-/commit/0eb5c21cf4deb2c45aedf5a4393d4208b8dc6d58.patch"; 36 + sha256 = "DmaPzGEu7f+gjjb2HSZ3+ZMc4EJSsba9ufsVysB0UPA="; 37 + }) 38 + # Fix pi test. 39 + (fetchpatch { 40 + url = "https://gitlab.gnome.org/GNOME/geocode-glib/-/commit/464bb3bae5525566a7f41d157f73575cc4f3b5f8.patch"; 41 + sha256 = "qSjXR8eKl+E38Zp7/Kgge/FxOLHYUJgRSR68okc3No0="; 42 + postFetch = '' 43 + substituteInPlace $out --replace "LC_MESSAGES" "LC_ALL" 44 + ''; 45 + }) 31 46 ]; 32 47 33 48 nativeBuildInputs = [