Unverified Commit 5a1dc8ac authored by Lily Foster's avatar Lily Foster Committed by GitHub
Browse files

Merge pull request #214031 from sersorrel/xivlauncher-gstreamer

xivlauncher: include GStreamer in closure
parents 826b063f b69554a0
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
{ 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" ];