about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mad/default.nix
blob: 79e2fd035f5a4da5f6402682c300df2e8e99e98c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libmad }:

buildDunePackage rec {
  pname = "mad";
  version = "0.5.2";

  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-mad";
    rev = "v${version}";
    sha256 = "sha256-iJjANV2M68v3C3db1n9Y8V6yJKuDBDSjtMteamndN7U=";
  };

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

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