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