mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00

- 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>
32 lines
757 B
Nix
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";
|
|
};
|
|
}
|