diff --git a/pkgs/development/ocaml-modules/soundtouch/default.nix b/pkgs/development/ocaml-modules/soundtouch/default.nix new file mode 100644 index 00000000000..fc79664d06b --- /dev/null +++ b/pkgs/development/ocaml-modules/soundtouch/default.nix @@ -0,0 +1,23 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, soundtouch }: + +buildDunePackage rec { + pname = "soundtouch"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-soundtouch"; + rev = "v${version}"; + sha256 = "sha256-81Mhk4PZx4jGrVIevzMslvVbKzipzDzHWnbtOjeZCI8="; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ soundtouch ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-soundtouch"; + description = "Bindings for the soundtouch library which provides functions for changing pitch and timestretching audio data"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e7908de5ec9..53ea214cba4 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1191,6 +1191,10 @@ let sosa = callPackage ../development/ocaml-modules/sosa { }; + soundtouch = callPackage ../development/ocaml-modules/soundtouch { + inherit (pkgs) soundtouch; + }; + spacetime_lib = callPackage ../development/ocaml-modules/spacetime_lib { }; speex = callPackage ../development/ocaml-modules/speex {