diff --git a/pkgs/development/ocaml-modules/faad/default.nix b/pkgs/development/ocaml-modules/faad/default.nix new file mode 100644 index 00000000000..a2705a27d92 --- /dev/null +++ b/pkgs/development/ocaml-modules/faad/default.nix @@ -0,0 +1,24 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, faad2, pkg-config }: + +buildDunePackage rec { + pname = "faad"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-faad"; + rev = "v${version}"; + sha256 = "sha256-3ayKZhgJAgsoOqn0InSrM5f3TImRHOQMtWETICo4t3o="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ faad2 ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-faad"; + description = "Bindings for the faad library which provides functions for decoding AAC audio files"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f3e207fb829..50a61806d81 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -399,6 +399,8 @@ let ezxmlm = callPackage ../development/ocaml-modules/ezxmlm { }; + faad = callPackage ../development/ocaml-modules/faad { }; + facile = callPackage ../development/ocaml-modules/facile { }; faraday = callPackage ../development/ocaml-modules/faraday { };