From 8ff60567ae1eb31e02de16e2f1e9e444592903f8 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 7 Jul 2015 14:09:38 +0200 Subject: [PATCH] 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 --- pkgs/servers/shairport-sync/default.nix | 28 ++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pkgs/servers/shairport-sync/default.nix b/pkgs/servers/shairport-sync/default.nix index 2bfe74900f6a..2ee5683a2ca2 100644 --- a/pkgs/servers/shairport-sync/default.nix +++ b/pkgs/servers/shairport-sync/default.nix @@ -1,36 +1,40 @@ -{ stdenv, fetchurl, openssl, avahi, alsaLib, libdaemon, autoconf, automake, libtool, popt, unzip, pkgconfig, libconfig, libpulseaudio }: +{ stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib +, libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }: stdenv.mkDerivation rec { - version = "2.3.0"; + version = "2.3.6.5"; name = "shairport-sync-${version}"; - src = fetchurl { - url = "https://github.com/mikebrady/shairport-sync/archive/${version}.zip"; - sha256 = "1kslif2ifrn0frvi39d44wpn53sjahwq0xjc0hd98ycf3xbcgndg"; + src = fetchFromGitHub { + sha256 = "1337y62pnch27s2gr47miip3na1am24xprlc5a27lbr764nr85s3"; + rev = version; + repo = "shairport-sync"; + owner = "mikebrady"; }; buildInputs = [ + autoreconfHook openssl avahi alsaLib libdaemon - autoconf - automake pkgconfig - libtool popt - unzip libconfig libpulseaudio + soxr ]; enableParallelBuilding = true; - preConfigure = "autoreconf -vfi"; - configureFlags = "--with-alsa --with-avahi --with-ssl=openssl --without-initscript --with-pulseaudio"; + configureFlags = '' + --with-alsa --with-pipe --with-pulseaudio --with-stdout + --with-avahi --with-ssl=openssl --with-soxr + --without-configfiles --without-initscript + ''; meta = with stdenv.lib; { - homepage = https://github.com/mikebrady/shairport-sync; + inherit (src.meta) homepage; description = "Airtunes server and emulator with multi-room capabilities"; license = licenses.mit; platforms = platforms.unix;