nixpkgs/nixos/tests/installed-tests/xdg-desktop-portal.nix
aucub 98b086d6d3 xdg-desktop-portal: 1.18.4 -> 1.20.0
- remove unneeded dependencies
- switch to wrapGAppsNoGuiHook
- add patch to fix sound validation similar to icon validation
- rebase other patches
- use a single python env with all test dependencies, as pytest path is hardcoded
  into installed tests
- fix installed tests, reenable location test (it works now)
- clean up a bunch of old hacks

Co-authored-by: aucub <78630225+aucub@users.noreply.github.com>
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2025-03-10 20:42:37 +03:00

32 lines
757 B
Nix

{
lib,
pkgs,
makeInstalledTest,
...
}:
makeInstalledTest {
tested = pkgs.xdg-desktop-portal;
testConfig = {
environment.variables = {
GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" [
pkgs.glib.out
pkgs.umockdev.out
];
# need to set this ourselves, because the tests will set LD_PRELOAD=libumockdev-preload.so,
# which can't be found because it's not in default rpath
LD_PRELOAD = "${pkgs.umockdev.out}/lib/libumockdev-preload.so";
XDP_TEST_IN_CI = 1;
};
environment.systemPackages = with pkgs; [
umockdev
wireless-regdb
];
services.geoclue2 = {
enable = true;
enableDemoAgent = true;
};
location.provider = "geoclue2";
};
}