2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchpatch
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, libaccounts-glib
|
|
|
|
, libexif
|
|
|
|
, libgee
|
2021-07-16 19:40:57 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, geocode-glib
|
|
|
|
, gexiv2
|
|
|
|
, libgphoto2
|
|
|
|
, granite
|
|
|
|
, gst_all_1
|
|
|
|
, libgudev
|
|
|
|
, json-glib
|
|
|
|
, libraw
|
|
|
|
, librest
|
|
|
|
, libsoup
|
|
|
|
, sqlite
|
|
|
|
, python3
|
|
|
|
, scour
|
|
|
|
, webkitgtk
|
|
|
|
, libwebp
|
|
|
|
, appstream
|
|
|
|
, wrapGAppsHook
|
|
|
|
, elementary-icon-theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-photos";
|
2021-07-16 19:40:57 +00:00
|
|
|
version = "2.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "photos";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2021-07-16 19:40:57 +00:00
|
|
|
sha256 = "1dql14k43rv3in451amiwv4z71hz3ailx67hd8gw1ka3yw12128p";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream code not respecting our localedir
|
|
|
|
# https://github.com/elementary/photos/pull/629
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/photos/commit/e5230a4305381734e93f1e3d1177da21a8a4121b.patch";
|
|
|
|
sha256 = "1igqq51sj1sx6rl8yrw037jsgnaxfwzfs0m6pqzb9q4jvfdimzfi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2021-07-16 19:40:57 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libraw
|
|
|
|
librest
|
|
|
|
libsoup
|
|
|
|
libwebp
|
|
|
|
scour
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dplugins=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Photo viewer and organizer designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/photos";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|