2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, openssl, libogg, libopus }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-03 20:48:10 +00:00
|
|
|
pname = "opusfile";
|
|
|
|
version = "0.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-05-03 20:48:10 +00:00
|
|
|
url = "http://downloads.xiph.org/releases/opus/opusfile-${version}.tar.gz";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl libogg ];
|
|
|
|
propagatedBuildInputs = [ libopus ];
|
2022-10-21 18:38:19 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2021-05-03 20:48:10 +00: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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [ "--disable-examples" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High-level API for decoding and seeking in .opus files";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://www.opus-codec.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-05-03 20:48:10 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ taeer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|