summary refs log blame commit diff
path: root/pkgs/applications/audio/opusfile/default.nix
blob: 34813c05e5b27e03d86fed80b77af1591031130e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               

                         
                         

                                                                   
                                                                    

    
                                    


                                            
                                            
 
                    
                                                                           
                                             

                                                    
                                        

    
{ lib, stdenv, fetchurl, pkgconfig, openssl, libogg, libopus }:

stdenv.mkDerivation rec {
  name = "opusfile-0.12";
  src = fetchurl {
    url = "http://downloads.xiph.org/releases/opus/${name}.tar.gz";
    sha256 = "02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ openssl libogg ];
  propagatedBuildInputs = [ libopus ];
  patches = [ ./include-multistream.patch ];
  configureFlags = [ "--disable-examples" ];

  meta = with lib; {
    description = "High-level API for decoding and seeking in .opus files";
    homepage = "https://www.opus-codec.org/";
    license = licenses.bsd3;
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ ];
  };
}