lol

Merge pull request #203869 from jordanisaacs/shairport-sync-update

authored by

Sandro and committed by
GitHub
7afa5caf 7dce27fe

+71 -23
+71 -23
pkgs/servers/shairport-sync/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 - , autoreconfHook, pkg-config 3 - , openssl, avahi, alsa-lib, glib, libdaemon, popt, libconfig, libpulseaudio, soxr 4 - , enableDbus ? stdenv.isLinux 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , pkg-config 6 + , openssl_1_1 7 + , avahi 8 + , alsa-lib 9 + , libplist 10 + , glib 11 + , libdaemon 12 + , libsodium 13 + , libgcrypt 14 + , ffmpeg 15 + , libuuid 16 + , unixtools 17 + , popt 18 + , libconfig 19 + , libpulseaudio 20 + , libjack2 21 + , pipewire 22 + , soxr 23 + , enableAirplay2 ? false 24 + , enableStdout ? true 25 + , enableAlsa ? true 26 + , enablePulse ? true 27 + , enablePipe ? true 28 + , enablePipewire ? true 29 + , enableJack ? true 5 30 , enableMetadata ? false 6 31 , enableMpris ? stdenv.isLinux 32 + , enableDbus ? stdenv.isLinux 33 + , enableSoxr ? true 34 + , enableLibdaemon ? false 7 35 }: 8 36 9 - with lib; 10 37 stdenv.mkDerivation rec { 11 - version = "3.3.9"; 38 + version = "4.1.1"; 12 39 pname = "shairport-sync"; 13 40 14 41 src = fetchFromGitHub { 15 - sha256 = "sha256-JLgnsLjswj0qus1Vd5ZtPQbbIp3dp2pI7OfQG4JrdW8="; 16 42 rev = version; 17 43 repo = "shairport-sync"; 18 44 owner = "mikebrady"; 45 + hash = "sha256-EKt5mH9GmzeR4zdPDFOt26T9STpG1khVrY4DFIv5Maw="; 19 46 }; 20 47 21 48 nativeBuildInputs = [ autoreconfHook pkg-config ]; 22 49 23 - buildInputs = [ 24 - openssl 50 + buildInputs = with lib; [ 51 + openssl_1_1 25 52 avahi 26 - alsa-lib 27 - libdaemon 28 53 popt 29 54 libconfig 30 - libpulseaudio 31 - soxr 32 - ] ++ optional stdenv.isLinux glib; 55 + ] 56 + ++ optional enableLibdaemon libdaemon 57 + ++ optional enableAlsa alsa-lib 58 + ++ optional enablePulse libpulseaudio 59 + ++ optional enablePipewire pipewire 60 + ++ optional enableJack libjack2 61 + ++ optional enableSoxr soxr 62 + ++ optionals enableAirplay2 [ 63 + libplist 64 + libsodium 65 + libgcrypt 66 + libuuid 67 + ffmpeg 68 + unixtools.xxd 69 + ] 70 + ++ optional stdenv.isLinux glib; 33 71 34 - prePatch = '' 72 + postPatch = '' 35 73 sed -i -e 's/G_BUS_TYPE_SYSTEM/G_BUS_TYPE_SESSION/g' dbus-service.c 36 74 sed -i -e 's/G_BUS_TYPE_SYSTEM/G_BUS_TYPE_SESSION/g' mpris-service.c 37 75 ''; 38 76 39 77 enableParallelBuilding = true; 40 78 41 - configureFlags = [ 42 - "--with-alsa" "--with-pipe" "--with-pa" "--with-stdout" 43 - "--with-avahi" "--with-ssl=openssl" "--with-soxr" 79 + configureFlags = with lib; [ 44 80 "--without-configfiles" 45 81 "--sysconfdir=/etc" 82 + "--with-ssl=openssl" 83 + "--with-stdout" 84 + "--with-avahi" 46 85 ] 47 - ++ optional enableDbus "--with-dbus-interface" 48 - ++ optional enableMetadata "--with-metadata" 49 - ++ optional enableMpris "--with-mpris-interface"; 86 + ++ optional enablePulse "--with-pa" 87 + ++ optional enablePipewire "--with-pw" 88 + ++ optional enableAlsa "--with-alsa" 89 + ++ optional enableJack "--with-jack" 90 + ++ optional enableStdout "--with-stdout" 91 + ++ optional enablePipe "--with-pipe" 92 + ++ optional enableSoxr "--with-soxr" 93 + ++ optional enableDbus "--with-dbus-interface" 94 + ++ optional enableMetadata "--with-metadata" 95 + ++ optional enableMpris "--with-mpris-interface" 96 + ++ optional enableLibdaemon "--with-libdaemon" 97 + ++ optional enableAirplay2 "--with-airplay-2"; 50 98 51 99 meta = with lib; { 52 - inherit (src.meta) homepage; 100 + homepage = "https://github.com/mikebrady/shairport-sync"; 53 101 description = "Airtunes server and emulator with multi-room capabilities"; 54 102 license = licenses.mit; 55 - maintainers = with maintainers; [ lnl7 ]; 103 + maintainers = with maintainers; [ lnl7 jordanisaacs ]; 56 104 platforms = platforms.unix; 57 105 }; 58 106 }