gonic: make mpv dependency optional (#525593)

This commit is contained in:
Michael Daniels
2026-06-09 00:58:12 +00:00
committed by GitHub
+4 -1
View File
@@ -15,6 +15,9 @@
# in the configuration if you disable transcodingSupport.
transcodingSupport ? true,
ffmpeg,
# Setting this to false does not disable the jukebox feature,
# but avoids the dependency on mpv at least.
jukeboxSupport ? true,
mpv,
}:
@@ -40,7 +43,7 @@ buildGoModule (finalAttrs: {
'`ffmpeg' \
'`${lib.getBin ffmpeg}/bin/ffmpeg'
''
+ ''
+ lib.optionalString jukeboxSupport ''
substituteInPlace \
jukebox/jukebox.go \
--replace-fail \