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