2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libmad }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mad";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.3";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.06";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-mad";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-rSFzWyUYTrGL7GvVsY5qKdCXqY/XJQkuBerexG838jc=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|