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