famistudio: Add GSettings schemas on Linux (#479309)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
openal,
|
||||
portaudio,
|
||||
rtmidi,
|
||||
wrapGAppsHook3,
|
||||
_experimental-update-script-combinators,
|
||||
gitUpdater,
|
||||
}:
|
||||
@@ -133,11 +134,17 @@ buildDotnetModule (finalAttrs: {
|
||||
nugetDeps = ./deps.json;
|
||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenvNoCC.hostPlatform.isLinux [
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
runtimeDeps = lib.optionals stdenvNoCC.hostPlatform.isLinux [
|
||||
gtk3
|
||||
libglvnd
|
||||
];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
executables = [ "FamiStudio" ];
|
||||
|
||||
postInstall = ''
|
||||
@@ -147,11 +154,19 @@ buildDotnetModule (finalAttrs: {
|
||||
done
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
postFixup =
|
||||
# Need GSettings schemas
|
||||
lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
||||
makeWrapperArgs+=(
|
||||
"''${gappsWrapperArgs[@]}"
|
||||
)
|
||||
''
|
||||
# FFMpeg looked up from PATH
|
||||
wrapProgram $out/bin/FamiStudio \
|
||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
||||
'';
|
||||
+ ''
|
||||
wrapProgram $out/bin/FamiStudio \
|
||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]} \
|
||||
''${makeWrapperArgs[@]}
|
||||
'';
|
||||
|
||||
passthru.updateScript = _experimental-update-script-combinators.sequence [
|
||||
(gitUpdater { }).command
|
||||
|
||||
Reference in New Issue
Block a user