From 87dddf65f61cfc18fe9604401880671388af310c Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Sat, 7 Mar 2026 18:29:42 +0100 Subject: [PATCH] libreoffice: fix gstreamer paths Libreoffice uses gstreamer for for audio and video within impress. If the correct gstreamer plugins are not available (e.g. because the plugin path is not set correctly), then adding such media will not play and can even temporarily hang the interface. This commit fixes incorrect and missing paths in the current libreoffice wrapper: - the gstreamer plugins are located in gstreamer-1.0 directories rather than girepository-1.0 - the default output of the gstreamer package only contains executables and not the plugins --- pkgs/applications/office/libreoffice/default.nix | 2 +- pkgs/applications/office/libreoffice/wrapper.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index a43d10c6318b..3f6947e3f9d2 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -706,7 +706,7 @@ stdenv.mkDerivation (finalAttrs: { gst-plugins-base gst-plugins-good gst-plugins-ugly - gstreamer + gstreamer.out ]; qmlPackages = [ kdePackages.ki18n diff --git a/pkgs/applications/office/libreoffice/wrapper.nix b/pkgs/applications/office/libreoffice/wrapper.nix index 43ea2802346b..c4735aaad101 100644 --- a/pkgs/applications/office/libreoffice/wrapper.nix +++ b/pkgs/applications/office/libreoffice/wrapper.nix @@ -54,7 +54,7 @@ let "--prefix" "GST_PLUGIN_SYSTEM_PATH_1_0" ":" - "${lib.makeSearchPath "lib/girepository-1.0" unwrapped.gst_packages}" + "${lib.makeSearchPath "lib/gstreamer-1.0" unwrapped.gst_packages}" "--suffix" "PATH" ":"