2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libopus }:
|
2018-12-07 12:19:04 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "libopusenc";
|
2021-07-17 17:56:23 +00:00
|
|
|
version = "0.2.1";
|
2018-12-07 12:19:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-06 01:56:39 +00:00
|
|
|
url = "mirror://mozilla/opus/libopusenc-${version}.tar.gz";
|
2018-12-07 12:19:04 +00:00
|
|
|
sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-12-07 12:19:04 +00:00
|
|
|
buildInputs = [ libopus ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-12-07 12:19:04 +00:00
|
|
|
description = "Library for encoding .opus audio files and live streams";
|
|
|
|
license = licenses.bsd3;
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://www.opus-codec.org/";
|
2018-12-07 12:19:04 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pmiddend ];
|
|
|
|
};
|
|
|
|
}
|