d9e13ed064
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
85 lines
1.4 KiB
Nix
85 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, pantheon
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, desktop-file-utils
|
|
, python3
|
|
, gettext
|
|
, libxml2
|
|
, gtk3
|
|
, granite
|
|
, libgee
|
|
, libhandy
|
|
, gst_all_1
|
|
, libcanberra
|
|
, clutter-gtk
|
|
, clutter-gst
|
|
, elementary-icon-theme
|
|
, appstream
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "elementary-camera";
|
|
version = "6.0.0";
|
|
|
|
repoName = "camera";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = repoName;
|
|
rev = version;
|
|
sha256 = "1z5c6pkc7psglxwzby5idsdxvplpi28ckjxrwdngnr22knfdcgag";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream
|
|
desktop-file-utils
|
|
gettext
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
clutter-gst
|
|
clutter-gtk
|
|
elementary-icon-theme
|
|
granite
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-base
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
|
gst_all_1.gstreamer
|
|
gtk3
|
|
libcanberra
|
|
libgee
|
|
libhandy
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Camera app designed for elementary OS";
|
|
homepage = "https://github.com/elementary/camera";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.pantheon.members;
|
|
};
|
|
}
|