summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mad/default.nix
blob: a619c84fb9ca0b1f89ce27f3cb9ee330c053ea31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  dune-configurator,
  libmad,
}:

buildDunePackage (finalAttrs: {
  pname = "mad";
  version = "0.5.3";

  minimalOCamlVersion = "4.06";

  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-mad";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-rSFzWyUYTrGL7GvVsY5qKdCXqY/XJQkuBerexG838jc=";
  };

  buildInputs = [ dune-configurator ];
  propagatedBuildInputs = [ libmad ];

  meta = {
    homepage = "https://github.com/savonet/ocaml-mad";
    description = "Bindings for the mad library which provides functions for encoding wave audio files into mp3";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ dandellion ];
  };
})