Merge pull request #67318 from jtojnar/gnome-photos

gnome-photos: 3.32.0 → 3.32.1
This commit is contained in:
Jan Tojnar 2019-08-23 19:49:43 +02:00 committed by GitHub
commit a8d3aebdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 231 additions and 95 deletions

View File

@ -30,9 +30,9 @@ with lib;
config = mkIf config.services.gnome3.gnome-online-accounts.enable {
environment.systemPackages = [ pkgs.gnome3.gnome-online-accounts ];
environment.systemPackages = [ pkgs.gnome-online-accounts ];
services.dbus.packages = [ pkgs.gnome3.gnome-online-accounts ];
services.dbus.packages = [ pkgs.gnome-online-accounts ];
};

View File

@ -30,11 +30,11 @@ with lib;
config = mkIf config.services.gnome3.tracker-miners.enable {
environment.systemPackages = [ pkgs.gnome3.tracker-miners ];
environment.systemPackages = [ pkgs.tracker-miners ];
services.dbus.packages = [ pkgs.gnome3.tracker-miners ];
services.dbus.packages = [ pkgs.tracker-miners ];
systemd.packages = [ pkgs.gnome3.tracker-miners ];
systemd.packages = [ pkgs.tracker-miners ];
};

View File

@ -30,11 +30,11 @@ with lib;
config = mkIf config.services.gnome3.tracker.enable {
environment.systemPackages = [ pkgs.gnome3.tracker ];
environment.systemPackages = [ pkgs.tracker ];
services.dbus.packages = [ pkgs.gnome3.tracker ];
services.dbus.packages = [ pkgs.tracker ];
systemd.packages = [ pkgs.gnome3.tracker ];
systemd.packages = [ pkgs.tracker ];
};

View File

@ -97,6 +97,7 @@ in
glusterfs = handleTest ./glusterfs.nix {};
gnome3-xorg = handleTest ./gnome3-xorg.nix {};
gnome3 = handleTest ./gnome3.nix {};
gnome-photos = handleTest ./gnome-photos.nix {};
gocd-agent = handleTest ./gocd-agent.nix {};
gocd-server = handleTest ./gocd-server.nix {};
google-oslogin = handleTest ./google-oslogin {};

View File

@ -0,0 +1,42 @@
# run installed tests
import ./make-test.nix ({ pkgs, lib, ... }:
let
# gsettings tool with access to gsettings-desktop-schemas
desktop-gsettings = with pkgs; stdenv.mkDerivation {
name = "desktop-gsettings";
dontUnpack = true;
nativeBuildInputs = [ glib wrapGAppsHook ];
buildInputs = [ gsettings-desktop-schemas ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
ln -s ${glib.bin}/bin/gsettings $out/bin/desktop-gsettings
runHook postInstall
'';
};
in
{
name = "gnome-photos";
meta = {
maintainers = pkgs.gnome-photos.meta.maintainers;
};
machine = { pkgs, ... }: {
imports = [ ./common/x11.nix ];
programs.dconf.enable = true;
services.gnome3.at-spi2-core.enable = true; # needed for dogtail
environment.systemPackages = with pkgs; [ gnome-desktop-testing desktop-gsettings ];
services.dbus.packages = with pkgs; [ gnome-photos ];
};
testScript = ''
$machine->waitForX;
# dogtail needs accessibility enabled
$machine->succeed("desktop-gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1");
$machine->succeed("gnome-desktop-testing-runner -d '${pkgs.gnome-photos.installedTests}/share' 2>&1");
'';
})

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitLab, substituteAll, meson, ninja, pkgconfig, vala_0_40, gettext
, gnome3, libnotify, itstool, glib, gtk3, libxml2
, gnome3, libnotify, itstool, glib, gtk3, libxml2, gnome-online-accounts
, coreutils, libpeas, libsecret, pcre, libxkbcommon, wrapGAppsHook
, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
, appstream-glib, desktop-file-utils, duplicity
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libnotify libpeas glib gtk3 libsecret
pcre libxkbcommon libpthreadstubs libXdmcp epoxy gnome3.nautilus
at-spi2-core dbus gnome3.gnome-online-accounts libgpgerror
at-spi2-core dbus gnome-online-accounts libgpgerror
];
propagatedUserEnvPkgs = [ duplicity ];

View File

@ -0,0 +1,125 @@
{ stdenv
, fetchurl
, at-spi2-core
, babl
, dbus
, desktop-file-utils
, dleyna-renderer
, gdk-pixbuf
, gegl
, geocode-glib
, gettext
, gexiv2
, gfbgraph
, glib
, gnome-online-accounts
, gnome3
, gobject-introspection
, grilo
, grilo-plugins
, gsettings-desktop-schemas
, gtk3
, itstool
, libdazzle
, libgdata
, libxml2
, meson
, ninja
, nixosTests
, pkgconfig
, python3
, tracker
, tracker-miners
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "gnome-photos";
version = "3.32.1";
outputs = [ "out" "installedTests" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0nxa2jz1g73wypdsj19r4plf4hfkhs9mpl7gbhsiyqp1rkn84ahn";
};
patches = [
./installed-tests-path.patch
];
nativeBuildInputs = [
desktop-file-utils
gettext
gobject-introspection # for setup hook
glib # for setup hook
itstool
libxml2
meson
ninja
pkgconfig
(python3.withPackages (pkgs: with pkgs; [
dogtail
pygobject3
pyatspi
]))
wrapGAppsHook
];
buildInputs = [
babl
dbus
dleyna-renderer
gdk-pixbuf
gegl
geocode-glib
gexiv2
gfbgraph
glib
gnome-online-accounts
gnome3.adwaita-icon-theme
grilo
grilo-plugins
gsettings-desktop-schemas
gtk3
libdazzle
libgdata
tracker
tracker-miners # For 'org.freedesktop.Tracker.Miner.Files' GSettings schema
at-spi2-core # for tests
];
mesonFlags = [
"-Dinstalled_tests=true"
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
patchShebangs tests/basic.py
'';
postFixup = ''
wrapProgram "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" "''${gappsWrapperArgs[@]}"
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
tests = {
installed-tests = nixosTests.gnome-photos;
};
};
meta = with stdenv.lib; {
description = "Access, organize and share your photos";
homepage = https://wiki.gnome.org/Apps/Photos;
license = licenses.gpl3Plus;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,23 @@
diff --git a/meson.build b/meson.build
index dee932dc..f8851913 100644
--- a/meson.build
+++ b/meson.build
@@ -16,8 +16,8 @@
photos_docdir = join_paths(photos_datadir, 'doc', meson.project_name())
photos_libdir = join_paths(photos_prefix, get_option('libdir'), meson.project_name())
-photos_installed_test_metadir = join_paths(photos_datadir, 'installed-tests', meson.project_name())
-photos_installed_test_execdir = join_paths(photos_libexecdir, 'installed-tests', meson.project_name())
+photos_installed_test_metadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
+photos_installed_test_execdir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
photos_namespace = 'org.gnome.Photos'
diff --git a/meson_options.txt b/meson_options.txt
index f34b5cc0..8e09970b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
option('dogtail', type: 'boolean', value: true, description: 'test using dogtail')
option('installed_tests', type: 'boolean', value: false, description: 'Enable installation of some test cases')
+option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, vala, gettext, python3
, appstream-glib, desktop-file-utils, wrapGAppsHook
, appstream-glib, desktop-file-utils, wrapGAppsHook, gnome-online-accounts
, gtk3, libgee, libpeas, librest, webkitgtk, gsettings-desktop-schemas, hicolor-icon-theme
, curl, glib, gnome3, gst_all_1, json-glib, libnotify, libsecret, sqlite, gumbo, libxml2
}:
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [
curl glib json-glib libnotify libsecret sqlite gumbo gtk3
libgee libpeas gnome3.libsoup librest webkitgtk gsettings-desktop-schemas
gnome3.gnome-online-accounts
gnome-online-accounts
hicolor-icon-theme # for setup hook
] ++ (with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good

View File

@ -1,8 +1,8 @@
{ stdenv, meson, ninja, gettext, fetchurl, pkgconfig
, wrapGAppsHook, itstool, desktop-file-utils, python3
, glib, gtk3, evolution-data-server
, glib, gtk3, evolution-data-server, gnome-online-accounts
, libuuid, webkitgtk, zeitgeist
, gnome3, libxml2, gsettings-desktop-schemas }:
, gnome3, libxml2, gsettings-desktop-schemas, tracker }:
let
version = "3.32.2";
@ -26,8 +26,8 @@ in stdenv.mkDerivation rec {
];
buildInputs = [
glib gtk3 libuuid webkitgtk gnome3.tracker
gnome3.gnome-online-accounts zeitgeist
glib gtk3 libuuid webkitgtk tracker
gnome-online-accounts zeitgeist
gsettings-desktop-schemas
evolution-data-server
gnome3.adwaita-icon-theme

View File

@ -1,56 +0,0 @@
{ stdenv, gettext, fetchurl, libxml2, libgdata
, pkgconfig, gtk3, glib, tracker, tracker-miners
, itstool, gegl, babl, libdazzle, gfbgraph, grilo-plugins
, grilo, gnome-online-accounts
, desktop-file-utils, wrapGAppsHook
, gnome3, gdk-pixbuf, gexiv2, geocode-glib
, dleyna-renderer, dbus, meson, ninja, python3, gsettings-desktop-schemas }:
let
pname = "gnome-photos";
version = "3.32.0";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "160vqmcqvyzby27wd2lzwzgbfl6jxxk7phhnqh9498r3clr73haj";
};
# doCheck = true;
nativeBuildInputs = [
pkgconfig gettext itstool meson ninja libxml2
desktop-file-utils wrapGAppsHook python3
];
buildInputs = [
gtk3 glib gegl babl libgdata libdazzle
gsettings-desktop-schemas
gdk-pixbuf gnome3.adwaita-icon-theme
gfbgraph grilo-plugins grilo
gnome-online-accounts tracker
gexiv2 geocode-glib dleyna-renderer
tracker-miners # For 'org.freedesktop.Tracker.Miner.Files' GSettings schema
dbus
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Photos;
description = "Access, organize and share your photos";
maintainers = gnome3.maintainers;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}

View File

@ -37,7 +37,7 @@ lib.makeScope pkgs.newScope (self: with self; {
gnome-calculator gnome-contacts gnome-font-viewer gnome-screenshot
gnome-system-monitor simple-scan
gnome-terminal gnome-user-docs evolution file-roller gedit
gnome-clocks gnome-music gnome-tweaks gnome-photos
gnome-clocks gnome-music gnome-tweaks pkgs.gnome-photos
nautilus-sendto dconf-editor vinagre gnome-weather gnome-logs
gnome-maps gnome-characters gnome-calendar accerciser gnome-nettool
gnome-getting-started-docs gnome-packagekit gnome-software
@ -113,8 +113,6 @@ lib.makeScope pkgs.newScope (self: with self; {
libgnome-keyring = callPackage ./core/libgnome-keyring { };
gnome-online-accounts = callPackage ./core/gnome-online-accounts { };
gnome-online-miners = callPackage ./core/gnome-online-miners { };
gnome-remote-desktop = callPackage ./core/gnome-remote-desktop { };
@ -141,10 +139,6 @@ lib.makeScope pkgs.newScope (self: with self; {
gnome-user-share = callPackage ./core/gnome-user-share { };
grilo = callPackage ./core/grilo { };
grilo-plugins = callPackage ./core/grilo-plugins { };
gucharmap = callPackage ./core/gucharmap { };
gvfs = pkgs.gvfs.override { gnome = gnome3; gnomeSupport = true; };
@ -196,10 +190,6 @@ lib.makeScope pkgs.newScope (self: with self; {
totem = callPackage ./core/totem { };
tracker = callPackage ./core/tracker { };
tracker-miners = callPackage ./core/tracker-miners { };
vino = callPackage ./core/vino { };
yelp = callPackage ./core/yelp { };
@ -251,10 +241,6 @@ lib.makeScope pkgs.newScope (self: with self; {
gnome-notes = callPackage ./apps/gnome-notes { };
gnome-photos = callPackage ./apps/gnome-photos {
gegl = gegl_0_4;
};
gnome-power-manager = callPackage ./apps/gnome-power-manager { };
gnome-sound-recorder = callPackage ./apps/gnome-sound-recorder { };
@ -391,6 +377,7 @@ lib.makeScope pkgs.newScope (self: with self; {
clutter clutter-gst clutter-gtk cogl gtk-vnc libdazzle libgda libgit2-glib libgxps libgdata libgepub libcroco libpeas libgee geocode-glib libgweather librest libzapojit libmediaart gfbgraph gexiv2 folks totem-pl-parser gcr gsound libgnomekbd vte vte_290 vte-ng gnome-menus gdl;
inherit (pkgs) gsettings-desktop-schemas; # added 2019-04-16
inherit (pkgs) gnome-video-effects; # added 2019-08-19
inherit (pkgs) gnome-online-accounts grilo grilo-plugins tracker tracker-miners gnome-photos; # added 2019-08-23
defaultIconTheme = adwaita-icon-theme;
gtk = gtk3;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, librest
{ stdenv, fetchurl, pkgconfig, glib, librest, gnome-online-accounts
, gnome3, libsoup, json-glib, gobject-introspection }:
stdenv.mkDerivation rec {
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig gobject-introspection ];
buildInputs = [ glib gnome3.gnome-online-accounts ];
buildInputs = [ glib gnome-online-accounts ];
propagatedBuildInputs = [ libsoup json-glib librest ];
configureFlags = [ "--enable-introspection" ];

View File

@ -48,7 +48,6 @@ in stdenv.mkDerivation rec {
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};

View File

@ -10,6 +10,7 @@
, glib
, json-glib
, gcr
, gnome-online-accounts
, gobject-introspection
, liboauth
, gnome3
@ -70,7 +71,7 @@ stdenv.mkDerivation rec {
];
propagatedBuildInputs = [
gnome3.gnome-online-accounts
gnome-online-accounts
json-glib
];

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, intltool, json-glib, librest, libsoup, gnome3, gobject-introspection }:
{ stdenv, fetchurl, pkgconfig, glib, intltool, json-glib, librest, libsoup, gnome3, gnome-online-accounts, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "libzapojit";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig intltool gobject-introspection ];
propagatedBuildInputs = [ glib json-glib librest libsoup gnome3.gnome-online-accounts ]; # zapojit-0.0.pc
propagatedBuildInputs = [ glib json-glib librest libsoup gnome-online-accounts ]; # zapojit-0.0.pc
passthru = {
updateScript = gnome3.updateScript {

View File

@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit (gnome3) tracker;
inherit tracker;
})
# https://bugzilla.gnome.org/show_bug.cgi?id=795576
(fetchurl {

View File

@ -2786,6 +2786,10 @@ in
tsm-client = callPackage ../tools/backup/tsm-client { jdk8 = null; };
tsm-client-withGui = callPackage ../tools/backup/tsm-client { };
tracker = callPackage ../development/libraries/tracker { };
tracker-miners = callPackage ../development/libraries/tracker-miners { };
tridactyl-native = callPackage ../tools/networking/tridactyl-native { };
trompeloeil = callPackage ../development/libraries/trompeloeil { };
@ -3414,6 +3418,10 @@ in
gnome-podcasts = callPackage ../applications/audio/gnome-podcasts { };
gnome-photos = callPackage ../applications/graphics/gnome-photos {
gegl = gnome3.gegl_0_4;
};
gnokii = callPackage ../tools/misc/gnokii { };
gnuapl = callPackage ../development/interpreters/gnu-apl { };
@ -9535,6 +9543,8 @@ in
gnome-latex = callPackage ../applications/editors/gnome-latex/default.nix { };
gnome-online-accounts = callPackage ../development/libraries/gnome-online-accounts { };
gnome-video-effects = callPackage ../development/libraries/gnome-video-effects { };
gnum4 = callPackage ../development/tools/misc/gnum4 { };
@ -10986,6 +10996,10 @@ in
grib-api = callPackage ../development/libraries/grib-api { };
grilo = callPackage ../development/libraries/grilo { };
grilo-plugins = callPackage ../development/libraries/grilo-plugins { };
grpc = callPackage ../development/libraries/grpc { };
gsettings-qt = libsForQt5.callPackage ../development/libraries/gsettings-qt { };
@ -18665,7 +18679,7 @@ in
celluloid = callPackage ../applications/video/celluloid { };
gnome-recipes = callPackage ../applications/misc/gnome-recipes {
inherit (gnome3) gnome-online-accounts gnome-autoar;
inherit (gnome3) gnome-autoar;
};
gollum = callPackage ../applications/misc/gollum { };