Skip to content

Commit

Permalink
geocode-glib: fix installed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Jul 2, 2022
1 parent f76ac44 commit 6a7da5b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
13 changes: 13 additions & 0 deletions nixos/tests/installed-tests/geocode-glib.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs, makeInstalledTest, ... }:

makeInstalledTest {
testConfig = {
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
# The tests require this locale available.
"en_GB.UTF-8/UTF-8"
];
};

tested = pkgs.geocode-glib;
}
19 changes: 17 additions & 2 deletions pkgs/development/libraries/geocode-glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ fetchurl
{ stdenv
, lib
, stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, pkg-config
Expand Down Expand Up @@ -28,6 +29,20 @@ stdenv.mkDerivation rec {

patches = [
./installed-tests-path.patch

# Install data for pi test.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/geocode-glib/-/commit/0eb5c21cf4deb2c45aedf5a4393d4208b8dc6d58.patch";
sha256 = "DmaPzGEu7f+gjjb2HSZ3+ZMc4EJSsba9ufsVysB0UPA=";
})
# Fix pi test.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/geocode-glib/-/commit/464bb3bae5525566a7f41d157f73575cc4f3b5f8.patch";
sha256 = "qSjXR8eKl+E38Zp7/Kgge/FxOLHYUJgRSR68okc3No0=";
postFetch = ''
substituteInPlace $out --replace "LC_MESSAGES" "LC_ALL"
'';
})
];

nativeBuildInputs = [
Expand Down

0 comments on commit 6a7da5b

Please sign in to comment.