1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 dune-configurator,
6 alsa,
7 ao,
8 mad,
9 pulseaudio,
10 theora,
11}:
12
13buildDunePackage rec {
14 pname = "mm";
15 version = "0.8.6";
16
17 duneVersion = "3";
18
19 minimalOCamlVersion = "4.12";
20
21 src = fetchFromGitHub {
22 owner = "savonet";
23 repo = "ocaml-mm";
24 rev = "v${version}";
25 sha256 = "sha256-ME6Naza7OvZ/63zEjrPeKq5JwMoMfV2fpkCuZdtCZ/c=";
26 };
27
28 buildInputs = [ dune-configurator ];
29 propagatedBuildInputs = [
30 alsa
31 ao
32 mad
33 pulseaudio
34 theora
35 ]; # ocamlsdl is blocked in nixpkgs from building for ocaml >= 4.06
36
37 meta = with lib; {
38 homepage = "https://github.com/savonet/ocaml-mm";
39 description = "High-level library to create and manipulate multimedia streams";
40 license = licenses.lgpl21Plus;
41 maintainers = with maintainers; [ dandellion ];
42 };
43}