···
{ lib, stdenv, buildGoModule, fetchFromGitHub
-
, pkg-config, taglib, alsa-lib
-
, zlib, AudioToolbox, AppKit
# Disable on-the-fly transcoding,
# removing the dependency on ffmpeg.
···
# to the original file, but if transcoding is configured
# that takes a while. So best to disable all transcoding
# in the configuration if you disable transcodingSupport.
-
, transcodingSupport ? true, ffmpeg }:
-
sha256 = "sha256-wX97HtvHgHpKTDwZl/wHQRpiyDJ7U38CpdzWu/CYizQ=";
nativeBuildInputs = [ pkg-config ];
-
buildInputs = [ taglib zlib ]
-
++ lib.optionals stdenv.isLinux [ alsa-lib ]
-
++ lib.optionals stdenv.isDarwin [ AudioToolbox AppKit ];
-
vendorSha256 = "sha256-oTuaA5ZsZ7zMcjzGh37zO/1XyOfj6xjfNr6A7ecrOiA=";
# TODO(Profpatsch): write a test for transcoding support,
# since it is prone to break
postPatch = lib.optionalString transcodingSupport ''
-
server/encode/encode.go \
-
'"${lib.getBin ffmpeg}/bin/ffmpeg"'
···
description = "Music streaming server / subsonic server API implementation";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ Profpatsch ];
···
{ lib, stdenv, buildGoModule, fetchFromGitHub
+
, pkg-config, taglib, zlib
# Disable on-the-fly transcoding,
# removing the dependency on ffmpeg.
···
# to the original file, but if transcoding is configured
# that takes a while. So best to disable all transcoding
# in the configuration if you disable transcodingSupport.
+
, transcodingSupport ? true, ffmpeg
+
sha256 = "sha256-sTvdMLa7rwrTRDH5DR5nJCzzbtXM9y8mq63CNR1lVfI=";
nativeBuildInputs = [ pkg-config ];
+
buildInputs = [ taglib zlib ];
+
vendorSha256 = "sha256-B9qzhh7FKkZPfuylxlyNP0blU5sjGwM6bLsw+vFkkb4=";
# TODO(Profpatsch): write a test for transcoding support,
# since it is prone to break
postPatch = lib.optionalString transcodingSupport ''
+
transcode/transcode.go \
+
'`${lib.getBin ffmpeg}/bin/ffmpeg'
+
'"${lib.getBin mpv}/bin/mpv"'
···
description = "Music streaming server / subsonic server API implementation";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ Profpatsch ];
+
platforms = lib.platforms.linux;