lol

owntone: init at 28.11 (#380701)

authored by scrumplex.net and committed by

GitHub 1140be83 b73f28c9

+101
+101
pkgs/by-name/ow/owntone/package.nix
··· 1 + { 2 + config, 3 + lib, 4 + stdenv, 5 + autoPatchelfHook, 6 + autoreconfHook, 7 + fetchFromGitHub, 8 + nix-update-script, 9 + 10 + chromecastSupport ? config.chromecast or stdenv.hostPlatform.isLinux, 11 + pulseSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux, 12 + 13 + avahi, 14 + curl, 15 + bison, 16 + ffmpeg, 17 + flex, 18 + gettext, 19 + gnutls, 20 + gperf, 21 + json_c, 22 + libconfuse, 23 + libevent, 24 + libgcrypt, 25 + libgpg-error, 26 + libplist, 27 + libpulseaudio, 28 + libsodium, 29 + libtool, 30 + libunistring, 31 + libwebsockets, 32 + libxml2, 33 + pkg-config, 34 + protobufc, 35 + sqlite, 36 + zlib, 37 + }: 38 + 39 + stdenv.mkDerivation (finalAttrs: { 40 + version = "28.11"; 41 + pname = "owntone"; 42 + 43 + src = fetchFromGitHub { 44 + owner = "owntone"; 45 + repo = "owntone-server"; 46 + tag = "${finalAttrs.version}"; 47 + hash = "sha256-lUelBZy7kAJ9tkvVbmxfXHiANJvhrnQydZkWiuoYTNU="; 48 + }; 49 + 50 + nativeBuildInputs = [ 51 + autoPatchelfHook 52 + autoreconfHook 53 + bison 54 + flex 55 + libtool 56 + gperf 57 + pkg-config 58 + ]; 59 + 60 + buildInputs = 61 + [ 62 + avahi 63 + curl 64 + ffmpeg 65 + gettext 66 + json_c 67 + libconfuse 68 + libevent 69 + libgcrypt 70 + libgpg-error 71 + libplist 72 + libsodium 73 + libunistring 74 + libwebsockets 75 + libxml2 76 + protobufc 77 + sqlite 78 + zlib 79 + ] 80 + ++ lib.optionals chromecastSupport [ gnutls ] 81 + ++ lib.optionals pulseSupport [ libpulseaudio ]; 82 + 83 + configureFlags = 84 + lib.optionals chromecastSupport [ "--enable-chromecast" ] 85 + ++ lib.optionals pulseSupport [ "--with-pulseaudio" ]; 86 + 87 + passthru.updateScript = nix-update-script { }; 88 + 89 + meta = { 90 + description = "Media server to stream audio to AirPlay and Chromecast receivers"; 91 + homepage = "https://github.com/owntone/owntone-server"; 92 + downloadPage = "https://github.com/owntone/owntone-server/releases/tag/${finalAttrs.version}"; 93 + changelog = "https://github.com/owntone/owntone-server/releases/tag/${finalAttrs.version}"; 94 + mainProgram = "owntone"; 95 + license = lib.licenses.gpl2Plus; 96 + maintainers = with lib.maintainers; [ 97 + hensoko 98 + ]; 99 + platforms = lib.platforms.linux; 100 + }; 101 + })