gonic: 0.14.0 -> 0.15.0
This commit is contained in:
parent
bf4acff908
commit
1e7261a279
2 changed files with 18 additions and 15 deletions
|
@ -1,6 +1,5 @@
|
|||
{ lib, stdenv, buildGoModule, fetchFromGitHub
|
||||
, pkg-config, taglib, alsa-lib
|
||||
, zlib, AudioToolbox, AppKit
|
||||
, pkg-config, taglib, zlib
|
||||
|
||||
# Disable on-the-fly transcoding,
|
||||
# removing the dependency on ffmpeg.
|
||||
|
@ -8,32 +7,37 @@
|
|||
# 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 }:
|
||||
, transcodingSupport ? true, ffmpeg
|
||||
, mpv }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gonic";
|
||||
version = "0.14.0";
|
||||
version = "0.15.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "sentriz";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-wX97HtvHgHpKTDwZl/wHQRpiyDJ7U38CpdzWu/CYizQ=";
|
||||
sha256 = "sha256-sTvdMLa7rwrTRDH5DR5nJCzzbtXM9y8mq63CNR1lVfI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ taglib zlib ]
|
||||
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
||||
++ lib.optionals stdenv.isDarwin [ AudioToolbox AppKit ];
|
||||
vendorSha256 = "sha256-oTuaA5ZsZ7zMcjzGh37zO/1XyOfj6xjfNr6A7ecrOiA=";
|
||||
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 ''
|
||||
substituteInPlace \
|
||||
server/encode/encode.go \
|
||||
transcode/transcode.go \
|
||||
--replace \
|
||||
'"ffmpeg"' \
|
||||
'"${lib.getBin ffmpeg}/bin/ffmpeg"'
|
||||
'`ffmpeg' \
|
||||
'`${lib.getBin ffmpeg}/bin/ffmpeg'
|
||||
'' + ''
|
||||
substituteInPlace \
|
||||
jukebox/jukebox.go \
|
||||
--replace \
|
||||
'"mpv"' \
|
||||
'"${lib.getBin mpv}/bin/mpv"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -41,5 +45,6 @@ buildGoModule rec {
|
|||
description = "Music streaming server / subsonic server API implementation";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ Profpatsch ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29141,9 +29141,7 @@ with pkgs;
|
|||
|
||||
gollum = callPackage ../applications/misc/gollum { };
|
||||
|
||||
gonic = callPackage ../servers/gonic {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit AudioToolbox;
|
||||
};
|
||||
gonic = callPackage ../servers/gonic { };
|
||||
|
||||
goodvibes = callPackage ../applications/audio/goodvibes { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue