2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, libaccounts-glib
|
|
|
|
, libexif
|
|
|
|
, libgee
|
|
|
|
, geocode-glib
|
|
|
|
, gexiv2
|
|
|
|
, libgphoto2
|
|
|
|
, granite
|
|
|
|
, gst_all_1
|
|
|
|
, libgudev
|
|
|
|
, json-glib
|
|
|
|
, libraw
|
|
|
|
, librest
|
|
|
|
, libsoup
|
|
|
|
, sqlite
|
|
|
|
, python3
|
|
|
|
, scour
|
|
|
|
, webkitgtk
|
|
|
|
, libwebp
|
|
|
|
, appstream
|
|
|
|
, libunity
|
|
|
|
, wrapGAppsHook
|
|
|
|
, elementary-icon-theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-photos";
|
|
|
|
version = "2.7.0";
|
|
|
|
|
|
|
|
repoName = "photos";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "sha256-bTk4shryAWWMrKX3mza6xQ05qpBPf80Ey7fmYgKLUiY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
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
|
|
|
|
librest
|
|
|
|
libsoup
|
|
|
|
libunity
|
|
|
|
libwebp
|
|
|
|
scour
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dplugins=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|