From 329f9a9a44e86b7b99c1263a2eff6f43c19ecb0a Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 17 Sep 2024 13:29:16 +0000 Subject: [PATCH] =?UTF-8?q?snapshot:=2047.beta=20=E2=86=92=2047.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/snapshot/-/compare/47.beta...47.0.1 Changelog-reviewed-by: Bobby Rong --- pkgs/applications/graphics/snapshot/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/snapshot/default.nix b/pkgs/applications/graphics/snapshot/default.nix index 419f58095600..2466dce24c42 100644 --- a/pkgs/applications/graphics/snapshot/default.nix +++ b/pkgs/applications/graphics/snapshot/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchurl +, fetchpatch , glycin-loaders , cargo , desktop-file-utils @@ -15,6 +16,7 @@ , gst_all_1 , gtk4 , libadwaita +, libcamera , libseccomp , pipewire , gnome @@ -22,16 +24,22 @@ stdenv.mkDerivation (finalAttrs: { pname = "snapshot"; - version = "47.beta"; + version = "47.0.1"; src = fetchurl { url = "mirror://gnome/sources/snapshot/${lib.versions.major finalAttrs.version}/snapshot-${finalAttrs.version}.tar.xz"; - hash = "sha256-0GxnNFes1huSi4pPZKC7S587QrTAOuOehzd2jZPRRrw="; + hash = "sha256-YqfxDJAhui5J5+aOfrie9UDAnyx933fCBeVCydro/7E="; }; patches = [ # Fix paths in glycin library glycin-loaders.passthru.glycinPathsPatch + + # Fixes crash on start with "property 'client-name' of type 'GstV4l2Src' not found" + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/snapshot/-/commit/2cf4643b0abc1a238f8f38c3eb8250a347ccb10d.patch"; + hash = "sha256-qZXDTVYXjstgQwuBAXVmInFhGwC0mOt+u+5XG5LKqGM="; + }) ]; nativeBuildInputs = [ @@ -55,6 +63,7 @@ stdenv.mkDerivation (finalAttrs: { gst_all_1.gstreamer gtk4 libadwaita + libcamera # for the gstreamer plugin libseccomp pipewire # for device provider ];