2024-01-02 11:29:13 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, cargo
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustc
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, pipewire
|
|
|
|
, gnome
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "snapshot";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "45.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/snapshot/${lib.versions.major finalAttrs.version}/snapshot-${finalAttrs.version}.tar.xz";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-iQd4F/xzXMjonbUWKPUuqKxmwZTfxqekLgA8TCnE3T4=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cargo
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustc
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
pipewire # for device provider
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# vp8enc preset
|
|
|
|
--prefix GST_PRESET_PATH : "${gst_all_1.gst-plugins-good}/share/gstreamer-1.0/presets"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = gnome.updateScript {
|
|
|
|
packageName = "snapshot";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/snapshot";
|
|
|
|
description = "Take pictures and videos on your computer, tablet, or phone";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "snapshot";
|
|
|
|
};
|
|
|
|
})
|