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