gonic: make mpv dependency optional

This commit is contained in:
sterni
2026-05-29 16:18:29 +02:00
parent b67199c130
commit 76a4151ddc
+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 \