2016-01-04 12:25:14 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, libogg, libopus }:
|
2013-12-07 19:09:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-28 18:59:03 +00:00
|
|
|
name = "opusfile-0.10";
|
2013-12-07 19:09:08 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.xiph.org/releases/opus/${name}.tar.gz";
|
2018-01-28 18:59:03 +00:00
|
|
|
sha256 = "0bs1376sd131qdh7198jp64vv5d17az5wyy4y7srrvw7p8k3bq28";
|
2013-12-07 19:09:08 +00:00
|
|
|
};
|
|
|
|
|
2016-01-04 12:25:14 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-09-13 05:00:39 +00:00
|
|
|
buildInputs = [ openssl libogg ];
|
|
|
|
propagatedBuildInputs = [ libopus ];
|
|
|
|
patches = [ ./include-multistream.patch ];
|
2016-10-13 01:10:42 +00:00
|
|
|
configureFlags = [ "--disable-examples" ];
|
2013-12-07 19:09:08 +00:00
|
|
|
|
2017-02-25 19:25:51 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-07 19:09:08 +00:00
|
|
|
description = "High-level API for decoding and seeking in .opus files";
|
|
|
|
homepage = http://www.opus-codec.org/;
|
2017-02-25 19:25:51 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ fuuzetsu ];
|
2013-12-07 19:09:08 +00:00
|
|
|
};
|
|
|
|
}
|