gonic: fix transcoding support
ffmpeg is not needed as a library at build time, but rather as an executable at runtime.
This commit is contained in:
parent
012cb9d3e2
commit
b6475a8f90
@ -20,9 +20,19 @@ buildGoModule rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ taglib alsaLib ] ++ lib.optionals transcodingSupport [ ffmpeg ];
|
buildInputs = [ taglib alsaLib ];
|
||||||
vendorSha256 = "0inxlqxnkglz4j14jav8080718a80nqdcl866lkql8r6zcxb4fm9";
|
vendorSha256 = "0inxlqxnkglz4j14jav8080718a80nqdcl866lkql8r6zcxb4fm9";
|
||||||
|
|
||||||
|
# TODO(Profpatsch): write a test for transcoding support,
|
||||||
|
# since it is prone to break
|
||||||
|
postPatch = lib.optionalString transcodingSupport ''
|
||||||
|
substituteInPlace \
|
||||||
|
server/encode/encode.go \
|
||||||
|
--replace \
|
||||||
|
'"ffmpeg"' \
|
||||||
|
'"${lib.getBin ffmpeg}/bin/ffmpeg"'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/sentriz/gonic";
|
homepage = "https://github.com/sentriz/gonic";
|
||||||
description = "Music streaming server / subsonic server API implementation";
|
description = "Music streaming server / subsonic server API implementation";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user