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.

87 lines
1.4 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
, gtk3
, libexif
, libgee
, libhandy
, libportal-gtk3
, geocode-glib_2
, gexiv2
, libgphoto2
, granite
, gst_all_1
, libgudev
, libraw
, sqlite
, python3
, libwebp
, wrapGAppsHook3
}:
2018-08-20 23:31:18 +03:00
stdenv.mkDerivation rec {
pname = "elementary-photos";
version = "8.0.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-EULNLtoZ8M68cp1DT11G6O2TONH/0DXWNX0k4AUqa/w=";
2018-08-20 23:31:18 +03:00
};
nativeBuildInputs = [
meson
ninja
2021-01-17 05:21:50 +03:00
pkg-config
python3
vala
wrapGAppsHook3
2018-08-20 23:31:18 +03:00
];
buildInputs = [
geocode-glib_2
2018-08-20 23:31:18 +03:00
gexiv2
granite
gtk3
libexif
libgee
libgphoto2
libgudev
libhandy
libportal-gtk3
2018-08-20 23:31:18 +03:00
libraw
libwebp
sqlite
] ++ (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
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 { };
};
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
};
}