2021-11-26 08:51:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 19:02:06 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-05 19:02:06 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, libgee
|
2021-07-19 02:17:52 +01:00
|
|
|
, libhandy
|
2019-08-05 19:02:06 +01:00
|
|
|
, gst_all_1
|
|
|
|
, libcanberra
|
|
|
|
, clutter-gtk
|
|
|
|
, clutter-gst
|
|
|
|
, elementary-icon-theme
|
|
|
|
, appstream
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-05 23:41:32 +01:00
|
|
|
pname = "elementary-camera";
|
2021-12-14 01:36:18 +00:00
|
|
|
version = "6.0.3";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2021-12-14 01:36:18 +00:00
|
|
|
repo = "camera";
|
2018-08-20 21:31:18 +01:00
|
|
|
rev = version;
|
2021-12-14 01:36:18 +00:00
|
|
|
sha256 = "sha256-xIv+mOlZV58XD0Z6Vc2wA1EQUxT5BaQ0zhYc9v+ne1w=";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 21:31:18 +01:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter-gst
|
|
|
|
clutter-gtk
|
|
|
|
elementary-icon-theme
|
|
|
|
granite
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-base
|
2021-07-19 02:17:52 +01:00
|
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
2018-08-20 21:31:18 +01:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gtk3
|
|
|
|
libcanberra
|
|
|
|
libgee
|
2021-07-19 02:17:52 +01:00
|
|
|
libhandy
|
2018-08-20 21:31:18 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-10-27 03:25:31 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 21:31:18 +01:00
|
|
|
description = "Camera app designed for elementary OS";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/camera";
|
2021-07-19 02:17:52 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-08-20 21:31:18 +01:00
|
|
|
platforms = platforms.linux;
|
2021-09-18 16:00:51 +01:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 03:47:36 +01:00
|
|
|
mainProgram = "io.elementary.camera";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
}
|