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 ];