2016-01-04 15:25:14 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, libogg, libopus }:
|
2013-12-07 23:09:08 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-13 04:10:42 +03:00
|
|
|
name = "opusfile-0.8";
|
2013-12-07 23:09:08 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.xiph.org/releases/opus/${name}.tar.gz";
|
2016-10-13 04:10:42 +03:00
|
|
|
sha256 = "192mp2jgn5s9815h31ybzsfipmbppmdhwx1dymrk26xarz9iw8rc";
|
2013-12-07 23:09:08 +04:00
|
|
|
};
|
|
|
|
|
2016-01-04 15:25:14 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-09-13 08:00:39 +03:00
|
|
|
buildInputs = [ openssl libogg ];
|
|
|
|
propagatedBuildInputs = [ libopus ];
|
|
|
|
patches = [ ./include-multistream.patch ];
|
2016-10-13 04:10:42 +03:00
|
|
|
configureFlags = [ "--disable-examples" ];
|
2013-12-07 23:09:08 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-level API for decoding and seeking in .opus files";
|
|
|
|
homepage = http://www.opus-codec.org/;
|
2014-09-21 22:01:17 +04:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-01-04 15:25:14 +03:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-09-21 22:01:17 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2013-12-07 23:09:08 +04:00
|
|
|
};
|
|
|
|
}
|