2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
vala,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
glib,
|
|
|
|
granite7,
|
|
|
|
gst_all_1,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
libcanberra,
|
|
|
|
libgee,
|
|
|
|
nix-update-script,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-camera";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "8.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2021-12-19 01:06:50 +00:00
|
|
|
repo = "camera";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-c8wpo2oMkovZikzcWHfiUIUA/+L7iWEcUv6Cg/BMa+s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
2024-09-19 14:19:46 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
glib
|
2024-09-19 14:19:46 +00:00
|
|
|
granite7
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
|
|
|
gst_all_1.gst-plugins-rs # GTK 4 sink
|
|
|
|
gst_all_1.gst-plugins-ugly
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
libcanberra
|
|
|
|
libgee
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Camera app designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/camera";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.camera";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|