2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-08-23 01:53:08 +02:00
|
|
|
, fetchurl
|
2019-08-23 03:16:28 +02:00
|
|
|
, at-spi2-core
|
2019-08-23 01:53:08 +02:00
|
|
|
, babl
|
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
|
|
|
, dleyna-renderer
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gegl
|
|
|
|
, geocode-glib
|
|
|
|
, gettext
|
|
|
|
, gexiv2
|
|
|
|
, gfbgraph
|
|
|
|
, glib
|
|
|
|
, gnome-online-accounts
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-08-23 03:16:28 +02:00
|
|
|
, gobject-introspection
|
2019-08-23 01:53:08 +02:00
|
|
|
, grilo
|
|
|
|
, grilo-plugins
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, itstool
|
|
|
|
, libdazzle
|
2021-03-21 01:32:57 +01:00
|
|
|
, libhandy
|
2019-08-23 01:53:08 +02:00
|
|
|
, libgdata
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
2019-08-23 03:16:28 +02:00
|
|
|
, nixosTests
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-08-23 01:53:08 +02:00
|
|
|
, python3
|
2020-10-23 23:09:27 +02:00
|
|
|
, tracker
|
|
|
|
, tracker-miners
|
2019-08-23 01:53:08 +02:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-08-23 01:38:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 13:22:47 +01:00
|
|
|
pname = "gnome-photos";
|
2021-03-21 01:32:57 +01:00
|
|
|
version = "40.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
2019-08-23 03:16:28 +02:00
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
src = fetchurl {
|
2021-03-21 01:32:57 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1bzi79plw6ji6qlckhxnwfnswy6jpnhzmmyanml2i2xg73hp6bg0";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2019-08-23 03:16:28 +02:00
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-03-03 19:54:28 +01:00
|
|
|
nativeBuildInputs = [
|
2019-08-23 01:53:08 +02:00
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
2019-08-23 03:16:28 +02:00
|
|
|
gobject-introspection # for setup hook
|
|
|
|
glib # for setup hook
|
2019-08-23 01:53:08 +02:00
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-08-23 03:16:28 +02:00
|
|
|
(python3.withPackages (pkgs: with pkgs; [
|
|
|
|
dogtail
|
|
|
|
pygobject3
|
|
|
|
pyatspi
|
|
|
|
]))
|
2019-08-23 01:53:08 +02:00
|
|
|
wrapGAppsHook
|
2019-03-03 19:54:28 +01:00
|
|
|
];
|
2019-08-23 01:53:08 +02:00
|
|
|
|
2018-03-15 13:22:47 +01:00
|
|
|
buildInputs = [
|
2019-08-23 01:53:08 +02:00
|
|
|
babl
|
|
|
|
dbus
|
|
|
|
dleyna-renderer
|
|
|
|
gdk-pixbuf
|
|
|
|
gegl
|
|
|
|
geocode-glib
|
|
|
|
gexiv2
|
|
|
|
gfbgraph
|
|
|
|
glib
|
|
|
|
gnome-online-accounts
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2019-08-23 01:53:08 +02:00
|
|
|
grilo
|
|
|
|
grilo-plugins
|
2019-04-17 02:38:26 +02:00
|
|
|
gsettings-desktop-schemas
|
2019-08-23 01:53:08 +02:00
|
|
|
gtk3
|
|
|
|
libdazzle
|
2021-03-21 01:32:57 +01:00
|
|
|
libhandy
|
2019-08-23 01:53:08 +02:00
|
|
|
libgdata
|
2020-10-23 23:09:27 +02:00
|
|
|
tracker
|
|
|
|
tracker-miners # For 'org.freedesktop.Tracker.Miner.Files' GSettings schema
|
2019-08-23 03:16:28 +02:00
|
|
|
|
|
|
|
at-spi2-core # for tests
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
2019-03-03 19:54:28 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2019-08-23 03:16:28 +02:00
|
|
|
patchShebangs tests/basic.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2019-09-22 09:38:09 +02:00
|
|
|
wrapGApp "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py"
|
2019-03-03 19:54:28 +01:00
|
|
|
'';
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:22:47 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-15 13:22:47 +01:00
|
|
|
packageName = pname;
|
|
|
|
};
|
2019-08-23 03:16:28 +02:00
|
|
|
|
|
|
|
tests = {
|
2020-08-19 23:43:13 +02:00
|
|
|
installed-tests = nixosTests.installed-tests.gnome-photos;
|
2019-08-23 03:16:28 +02:00
|
|
|
};
|
2018-03-15 13:22:47 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-15 13:22:47 +01:00
|
|
|
description = "Access, organize and share your photos";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Photos";
|
2018-03-15 13:22:47 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|