2021-01-18 22:50:56 -08:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, openssl, libogg, libopus }:
|
2013-12-07 11:09:08 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-27 10:59:41 -07:00
|
|
|
pname = "opusfile";
|
|
|
|
version = "0.12";
|
2013-12-07 11:09:08 -08:00
|
|
|
src = fetchurl {
|
2021-04-27 10:59:41 -07:00
|
|
|
url = "http://downloads.xiph.org/releases/opus/opusfile-${version}.tar.gz";
|
2020-07-05 15:24:39 -07:00
|
|
|
sha256 = "02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i";
|
2013-12-07 11:09:08 -08:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-09-12 22:00:39 -07:00
|
|
|
buildInputs = [ openssl libogg ];
|
|
|
|
propagatedBuildInputs = [ libopus ];
|
2021-04-27 10:59:41 -07:00
|
|
|
patches = [ ./include-multistream.patch ]
|
|
|
|
# fixes problem with openssl 1.1 dependency
|
|
|
|
# see https://github.com/xiph/opusfile/issues/13
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isWindows [ ./disable-cert-store.patch ];
|
2016-10-12 18:10:42 -07:00
|
|
|
configureFlags = [ "--disable-examples" ];
|
2013-12-07 11:09:08 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2013-12-07 11:09:08 -08:00
|
|
|
description = "High-level API for decoding and seeking in .opus files";
|
2020-10-02 00:58:50 -07:00
|
|
|
homepage = "https://www.opus-codec.org/";
|
2017-02-25 11:25:51 -08:00
|
|
|
license = licenses.bsd3;
|
2021-04-27 10:59:41 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ taeer ];
|
2013-12-07 11:09:08 -08:00
|
|
|
};
|
|
|
|
}
|