mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
90 lines
2.0 KiB
Nix
90 lines
2.0 KiB
Nix
{ stdenv, fetchFromGitHub, pantheon, meson, ninja, pkgconfig, vala, desktop-file-utils
|
|
, gtk3, glib, libaccounts-glib, libexif, libgee, geocode-glib, gexiv2,libgphoto2, fetchpatch
|
|
, granite, gst_all_1, libgudev, json-glib, libraw, librest, libsoup, sqlite, python3
|
|
, scour, webkitgtk, libwebp, appstream, libunity, wrapGAppsHook, gobject-introspection, elementary-icon-theme }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "photos";
|
|
version = "2.6.2";
|
|
|
|
name = "elementary-${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "166a1jb85n67z6ffm5i0xzap407rv0r511lzh0gidkap1qy6pnmi";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = pantheon.updateScript {
|
|
repoName = pname;
|
|
attrPath = "elementary-${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
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
|
|
libsoup
|
|
libunity
|
|
libwebp
|
|
librest
|
|
scour
|
|
sqlite
|
|
webkitgtk
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dplugins=false"
|
|
];
|
|
|
|
patches = [
|
|
# Fix build against gexiv2 0.12
|
|
(fetchpatch {
|
|
url = "https://github.com/elementary/photos/commit/86df00ced674abb2ee430ea24422079cfabb314c.patch";
|
|
sha256 = "0836fzja93w36jf7ldqypsmnqn46mwsl93q41m104zn8qm0wrkmy";
|
|
})
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|