mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
xivlauncher: include GStreamer in closure
This commit is contained in:
parent
25a9e5aef8
commit
b69554a0d2
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user