summary refs log blame commit diff
path: root/pkgs/servers/shairport-sync/default.nix
blob: fbce457aedc29dc980d1e0ad0d3e4dd0d5bf0115 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                  

                         
                    

                                     
                         
                                                                    


                            

    

                                                   




                 
        
             
                 
        



                                




                                                                   

                           
                                

                                                                              
                                              


                               
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib
, libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }:

stdenv.mkDerivation rec {
  version = "3.2.1";
  name = "shairport-sync-${version}";

  src = fetchFromGitHub {
    sha256 = "1g9pd00c1x66cbp4gls93pvnrwbzl37q7p8jaag3h5d6f1431i51";
    rev = version;
    repo = "shairport-sync";
    owner = "mikebrady";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];

  buildInputs = [
    openssl
    avahi
    alsaLib
    libdaemon
    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;
    maintainers =  with maintainers; [ lnl7 ];
    platforms = platforms.unix;
  };
}