Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-13 00:56:26 +00:00
committed by GitHub
31 changed files with 438 additions and 149 deletions

View File

@@ -24,7 +24,11 @@ stdenv.mkDerivation rec {
'';
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap";
NIX_CFLAGS_COMPILE = "-Wno-error=enum-conversion";
# On gcc9, this would produce
# error: '-Werror=enum-conversion': no option -Wenum-conversion
NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast stdenv.cc.version "10")
"-Wno-error=enum-conversion";
enableParallelBuilding = true;

View File

@@ -20,9 +20,19 @@ buildGoModule rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ taglib alsaLib ] ++ lib.optionals transcodingSupport [ ffmpeg ];
buildInputs = [ taglib alsaLib ];
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 = {
homepage = "https://github.com/sentriz/gonic";
description = "Music streaming server / subsonic server API implementation";