2021-10-30 17:50:38 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, ogg, libopus }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "opus";
|
2022-08-01 01:31:56 +00:00
|
|
|
version = "0.2.2";
|
2021-10-30 17:50:38 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-opus";
|
|
|
|
rev = "v${version}";
|
2022-08-01 01:31:56 +00:00
|
|
|
sha256 = "sha256-Ghfqw/J1oLbTJpYJaiB5M79jaA6DACvyxBVE+NjnPkg=";
|
2021-10-30 17:50:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ ogg libopus.dev ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/savonet/ocaml-opus";
|
|
|
|
description = "Bindings to libopus";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ dandellion ];
|
|
|
|
};
|
|
|
|
}
|