1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 dune-configurator,
6 pkg-config,
7 ogg,
8 libopus,
9}:
10
11buildDunePackage rec {
12 pname = "opus";
13 version = "0.2.2";
14
15 duneVersion = "3";
16
17 src = fetchFromGitHub {
18 owner = "savonet";
19 repo = "ocaml-opus";
20 rev = "v${version}";
21 hash = "sha256-Ghfqw/J1oLbTJpYJaiB5M79jaA6DACvyxBVE+NjnPkg=";
22 };
23
24 nativeBuildInputs = [ pkg-config ];
25 buildInputs = [ dune-configurator ];
26 propagatedBuildInputs = [
27 ogg
28 libopus.dev
29 ];
30
31 meta = with lib; {
32 homepage = "https://github.com/savonet/ocaml-opus";
33 description = "Bindings to libopus";
34 license = licenses.gpl2Only;
35 maintainers = with maintainers; [ dandellion ];
36 };
37}