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