lol

shairport-sync: 2.3.0 -> 2.3.6.5

- Enable additional backends: pipe, stdout
- Support high-quality resampling with soxr
- Support configuration files, but don't install one
- Cut down on boilerplate code with fetchFromGitHub/autoreconfHook

+16 -12
+16 -12
pkgs/servers/shairport-sync/default.nix
··· 1 - { stdenv, fetchurl, openssl, avahi, alsaLib, libdaemon, autoconf, automake, libtool, popt, unzip, pkgconfig, libconfig, libpulseaudio }: 1 + { stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib 2 + , libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }: 2 3 3 4 stdenv.mkDerivation rec { 4 - version = "2.3.0"; 5 + version = "2.3.6.5"; 5 6 name = "shairport-sync-${version}"; 6 7 7 - src = fetchurl { 8 - url = "https://github.com/mikebrady/shairport-sync/archive/${version}.zip"; 9 - sha256 = "1kslif2ifrn0frvi39d44wpn53sjahwq0xjc0hd98ycf3xbcgndg"; 8 + src = fetchFromGitHub { 9 + sha256 = "1337y62pnch27s2gr47miip3na1am24xprlc5a27lbr764nr85s3"; 10 + rev = version; 11 + repo = "shairport-sync"; 12 + owner = "mikebrady"; 10 13 }; 11 14 12 15 buildInputs = [ 16 + autoreconfHook 13 17 openssl 14 18 avahi 15 19 alsaLib 16 20 libdaemon 17 - autoconf 18 - automake 19 21 pkgconfig 20 - libtool 21 22 popt 22 - unzip 23 23 libconfig 24 24 libpulseaudio 25 + soxr 25 26 ]; 26 27 27 28 enableParallelBuilding = true; 28 29 29 - preConfigure = "autoreconf -vfi"; 30 - configureFlags = "--with-alsa --with-avahi --with-ssl=openssl --without-initscript --with-pulseaudio"; 30 + configureFlags = '' 31 + --with-alsa --with-pipe --with-pulseaudio --with-stdout 32 + --with-avahi --with-ssl=openssl --with-soxr 33 + --without-configfiles --without-initscript 34 + ''; 31 35 32 36 meta = with stdenv.lib; { 33 - homepage = https://github.com/mikebrady/shairport-sync; 37 + inherit (src.meta) homepage; 34 38 description = "Airtunes server and emulator with multi-room capabilities"; 35 39 license = licenses.mit; 36 40 platforms = platforms.unix;