1{
2 lib,
3 pkgs,
4 makeInstalledTest,
5 ...
6}:
7
8makeInstalledTest {
9 tested = pkgs.xdg-desktop-portal;
10
11 testConfig = {
12 environment.variables = {
13 GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" [
14 pkgs.glib.out
15 pkgs.umockdev.out
16 ];
17 # need to set this ourselves, because the tests will set LD_PRELOAD=libumockdev-preload.so,
18 # which can't be found because it's not in default rpath
19 LD_PRELOAD = "${pkgs.umockdev.out}/lib/libumockdev-preload.so";
20 XDP_TEST_IN_CI = 1;
21 };
22 environment.systemPackages = with pkgs; [
23 umockdev
24 wireless-regdb
25 ];
26 services.geoclue2 = {
27 enable = true;
28 enableDemoAgent = true;
29 };
30 location.provider = "geoclue2";
31 };
32}