postgresqlPackages.sqlite_fdw: 2.4.0 -> 2.5.0 (#364337)
[NixPkgs.git] / nixos / tests / installed-tests / gnome-photos.nix
blobded6edcaf45eb0769f7909fa94d8f6f0f3fb41e6
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 = [
17           glib
18           wrapGAppsHook3
19         ];
20         buildInputs = [ gsettings-desktop-schemas ];
21         installPhase = ''
22           runHook preInstall
23           mkdir -p $out/bin
24           ln -s ${glib.bin}/bin/gsettings $out/bin/desktop-gsettings
25           runHook postInstall
26         '';
27       })
28     ];
29     services.dbus.packages = with pkgs; [ gnome-photos ];
30   };
32   preTestScript = ''
33     # dogtail needs accessibility enabled
34     machine.succeed(
35         "desktop-gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1"
36     )
37   '';