diff --git a/pkgs/development/ocaml-modules/mad/default.nix b/pkgs/development/ocaml-modules/mad/default.nix new file mode 100644 index 00000000000..79e2fd035f5 --- /dev/null +++ b/pkgs/development/ocaml-modules/mad/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 88fe98c4fef..c3577cc1bff 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -746,6 +746,8 @@ let macaque = callPackage ../development/ocaml-modules/macaque { }; + mad = callPackage ../development/ocaml-modules/mad { }; + magic = callPackage ../development/ocaml-modules/magic { }; magic-mime = callPackage ../development/ocaml-modules/magic-mime { };