1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 dune-configurator,
6 libmad,
7}:
8
9buildDunePackage rec {
10 pname = "mad";
11 version = "0.5.3";
12
13 minimalOCamlVersion = "4.06";
14
15 src = fetchFromGitHub {
16 owner = "savonet";
17 repo = "ocaml-mad";
18 rev = "v${version}";
19 sha256 = "sha256-rSFzWyUYTrGL7GvVsY5qKdCXqY/XJQkuBerexG838jc=";
20 };
21
22 buildInputs = [ dune-configurator ];
23 propagatedBuildInputs = [ libmad ];
24
25 meta = with lib; {
26 homepage = "https://github.com/savonet/ocaml-mad";
27 description = "Bindings for the mad library which provides functions for encoding wave audio files into mp3";
28 license = licenses.gpl2Plus;
29 maintainers = with maintainers; [ dandellion ];
30 };
31}