vuls: init at 0.27.0
[NixPkgs.git] / nixos / tests / installed-tests / gnome-photos.nix
blob010ad970240268e10cd93e09565a9ae02040fd80
1 { pkgs, makeInstalledTest, ... }:
3 makeInstalledTest {
4   tested = pkgs.gnome-photos;
6   withX11 = true;
8   testConfig = {
9     programs.dconf.enable = true;
10     services.gnome.at-spi2-core.enable = true; # needed for dogtail
11     environment.systemPackages = with pkgs; [
12       # gsettings tool with access to gsettings-desktop-schemas
13       (stdenv.mkDerivation {
14         name = "desktop-gsettings";
15         dontUnpack = true;
16         nativeBuildInputs = [ glib wrapGAppsHook3 ];
17         buildInputs = [ gsettings-desktop-schemas ];
18         installPhase = ''
19           runHook preInstall
20           mkdir -p $out/bin
21           ln -s ${glib.bin}/bin/gsettings $out/bin/desktop-gsettings
22           runHook postInstall
23         '';
24       })
25     ];
26     services.dbus.packages = with pkgs; [ gnome-photos ];
27   };
29   preTestScript = ''
30     # dogtail needs accessibility enabled
31     machine.succeed(
32         "desktop-gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1"
33     )
34   '';