summary refs log blame commit diff
path: root/pkgs/servers/shairport-sync/default.nix
blob: 99402b3e1be491f7077440bfe388d40bb76cbfac (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.3.5";
  pname = "shairport-sync";

  src = fetchFromGitHub {
    sha256 = "1qaxx1g4dvdx54mc1kw07hm445zij37w6qmkdcwymy13krvsfd4b";
    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-pa" "--with-stdout"
    "--with-avahi" "--with-ssl=openssl" "--with-soxr"
    "--without-configfiles"
    "--sysconfdir=/etc"
  ];

  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;
  };
}