mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
8ff60567ae
- 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
43 lines
974 B
Nix
43 lines
974 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib
|
|
, libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.3.6.5";
|
|
name = "shairport-sync-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1337y62pnch27s2gr47miip3na1am24xprlc5a27lbr764nr85s3";
|
|
rev = version;
|
|
repo = "shairport-sync";
|
|
owner = "mikebrady";
|
|
};
|
|
|
|
buildInputs = [
|
|
autoreconfHook
|
|
openssl
|
|
avahi
|
|
alsaLib
|
|
libdaemon
|
|
pkgconfig
|
|
popt
|
|
libconfig
|
|
libpulseaudio
|
|
soxr
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = ''
|
|
--with-alsa --with-pipe --with-pulseaudio --with-stdout
|
|
--with-avahi --with-ssl=openssl --with-soxr
|
|
--without-configfiles --without-initscript
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Airtunes server and emulator with multi-room capabilities";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|