From b69554a0d288345d889161c0e630395fba6d3441 Mon Sep 17 00:00:00 2001 From: ash Date: Wed, 1 Feb 2023 17:49:57 +0000 Subject: [PATCH] xivlauncher: include GStreamer in closure --- pkgs/games/xivlauncher/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/games/xivlauncher/default.nix b/pkgs/games/xivlauncher/default.nix index 0fe7981f9651..888a8fe53f5b 100644 --- a/pkgs/games/xivlauncher/default.nix +++ b/pkgs/games/xivlauncher/default.nix @@ -1,5 +1,5 @@ -{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, SDL2, libsecret, glib, gnutls, aria2, steam-run -, copyDesktopItems, makeDesktopItem +{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, SDL2, libsecret, glib, gnutls, aria2, steam-run, gst_all_1 +, copyDesktopItems, makeDesktopItem, makeWrapper , useSteamRun ? true }: let @@ -17,7 +17,9 @@ in fetchSubmodules = true; }; - nativeBuildInputs = [ copyDesktopItems ]; + nativeBuildInputs = [ copyDesktopItems makeWrapper ]; + + buildInputs = with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]; projectFile = "src/XIVLauncher.Core/XIVLauncher.Core.csproj"; nugetDeps = ./deps.nix; # File generated with `nix-build -A xivlauncher.passthru.fetch-deps` @@ -40,6 +42,8 @@ in postFixup = lib.optionalString useSteamRun '' substituteInPlace $out/bin/XIVLauncher.Core \ --replace 'exec' 'exec ${steam-run}/bin/steam-run' + '' + '' + wrapProgram $out/bin/XIVLauncher.Core --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0" ''; executables = [ "XIVLauncher.Core" ];