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