2018-08-20 21:31:18 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pantheon, meson, ninja, pkgconfig, vala, desktop-file-utils
|
2019-03-16 21:33:52 +00:00
|
|
|
, gtk3, glib, libaccounts-glib, libexif, libgee, geocode-glib, gexiv2,libgphoto2, fetchpatch
|
2019-01-30 00:01:43 +00:00
|
|
|
, granite, gst_all_1, libgudev, json-glib, libraw, librest, libsoup, sqlite, python3
|
2018-08-20 21:31:18 +01:00
|
|
|
, scour, webkitgtk, libwebp, appstream, libunity, wrapGAppsHook, gobject-introspection, elementary-icon-theme }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "photos";
|
2019-04-11 23:34:37 +01:00
|
|
|
version = "2.6.3";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
name = "elementary-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-04-11 23:34:37 +01:00
|
|
|
sha256 = "1s0ww5g26wj0gd1drj8gxs74gvg2c9fdj4ixpifj8jh8yafdmrvg";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = pantheon.updateScript {
|
|
|
|
repoName = pname;
|
|
|
|
attrPath = "elementary-${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2019-01-30 00:01:43 +00:00
|
|
|
python3
|
2018-08-20 21:31:18 +01:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with gst_all_1; [
|
|
|
|
elementary-icon-theme
|
|
|
|
geocode-glib
|
|
|
|
gexiv2
|
|
|
|
granite
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gstreamer
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libaccounts-glib
|
|
|
|
libexif
|
|
|
|
libgee
|
|
|
|
libgphoto2
|
|
|
|
libgudev
|
|
|
|
libraw
|
|
|
|
libsoup
|
|
|
|
libunity
|
|
|
|
libwebp
|
|
|
|
librest
|
|
|
|
scour
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dplugins=false"
|
|
|
|
];
|
|
|
|
|
2019-04-18 16:56:40 +01:00
|
|
|
patches = [
|
|
|
|
# https://github.com/elementary/photos/pull/505
|
|
|
|
# Unrelated line got dropped in https://github.com/elementary/photos/pull/498
|
|
|
|
./fix-missing-line.patch
|
|
|
|
];
|
|
|
|
|
2019-01-30 00:01:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
2018-08-20 21:31:18 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Photo viewer and organizer designed for elementary OS";
|
|
|
|
homepage = https://github.com/elementary/photos;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|