nixpkgs/pkgs/desktops/pantheon/apps/elementary-photos/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
2021-01-17 05:21:50 +03:00
, pkg-config
, vala
, desktop-file-utils
, gtk3
, libexif
, libgee
, libhandy
, geocode-glib
, gexiv2
, libgphoto2
, granite
, gst_all_1
, libgudev
, json-glib
, libraw
, librest
, libsoup
, sqlite
, python3
, webkitgtk
, libwebp
, appstream
, wrapGAppsHook
}:
2018-08-20 23:31:18 +03:00
stdenv.mkDerivation rec {
pname = "elementary-photos";
version = "2.8.0";
2018-08-20 23:31:18 +03:00
src = fetchFromGitHub {
owner = "elementary";
repo = "photos";
2018-08-20 23:31:18 +03:00
rev = version;
sha256 = "sha256-VhJggQMy1vk21zNA5pR4uAPGCwnIxLUHVO58AZs+h6s=";
2018-08-20 23:31:18 +03:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
meson
ninja
2021-01-17 05:21:50 +03:00
pkg-config
python3
vala
2018-08-20 23:31:18 +03:00
wrapGAppsHook
];
buildInputs = [
2018-08-20 23:31:18 +03:00
geocode-glib
gexiv2
granite
gtk3
json-glib
libexif
libgee
libgphoto2
libgudev
libhandy
2018-08-20 23:31:18 +03:00
libraw
librest
2018-08-20 23:31:18 +03:00
libsoup
libwebp
sqlite
webkitgtk
] ++ (with gst_all_1; [
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
]);
2018-08-20 23:31:18 +03:00
mesonFlags = [
"-Dplugins=false"
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
2018-08-20 23:31:18 +03:00
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
2018-08-20 23:31:18 +03:00
description = "Photo viewer and organizer designed for elementary OS";
homepage = "https://github.com/elementary/photos";
2018-08-20 23:31:18 +03:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 05:47:36 +03:00
mainProgram = "io.elementary.photos";
2018-08-20 23:31:18 +03:00
};
}