gnome-decoder : 0.4.1 -> 0.6.1 (#362978)

This commit is contained in:
Aleksana 2024-12-08 18:30:09 +08:00 committed by GitHub
commit b7a11231ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 4 deletions

View File

@ -17,29 +17,41 @@
, gstreamer
, gst-plugins-base
, gst-plugins-bad
, gst-plugins-good
, gst-plugins-rs
, wrapGAppsHook4
, appstream-glib
, desktop-file-utils
, glycin-loaders
}:
clangStdenv.mkDerivation rec {
pname = "gnome-decoder";
version = "0.4.1";
version = "0.6.1";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "decoder";
rev = version;
hash = "sha256-ZEt4QaT2w7PgsnwBCYeDbhcYX0yd0boes/LoejQx0XU=";
hash = "sha256-qSPuEVW+FwC9OJa+dseIy4/2bhVdTryJSJNSpes9tpY=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-acYOSPSUgm0Kg/bo2WF4sRWfCt03AZdTyNNt3Qv7Zjg=";
hash = "sha256-MbfukvqlzZPnWNtWCwYn7lABqBxtZWvPDba9Deah+w8=";
};
preFixup = ''
gappsWrapperArgs+=(
# vp8enc preset
--prefix GST_PRESET_PATH : "${gst-plugins-good}/share/gstreamer-1.0/presets"
# See https://gitlab.gnome.org/sophie-h/glycin/-/blob/0.1.beta.2/glycin/src/config.rs#L44
--prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
)
'';
nativeBuildInputs = [
meson
ninja
@ -64,6 +76,8 @@ clangStdenv.mkDerivation rec {
gstreamer
gst-plugins-base
gst-plugins-bad
gst-plugins-good
gst-plugins-rs # for gtk4paintablesink
];
meta = with lib; {

View File

@ -3514,7 +3514,7 @@ with pkgs;
};
gnome-decoder = callPackage ../applications/graphics/gnome-decoder {
inherit (gst_all_1) gstreamer gst-plugins-base;
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-rs;
gst-plugins-bad = gst_all_1.gst-plugins-bad.override { enableZbar = true; };
};