about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDaniel Olsen <daniel.olsen99@gmail.com>2021-10-30 21:57:19 +0200
committerDaniel Olsen <daniel.olsen99@gmail.com>2022-06-08 15:21:28 +0200
commit89a381788e217161d610030b80f3f79e26faa7ef (patch)
tree8f34bbf63726d160f35b5ea1a7fd2f5f75170a7d /pkgs
parentf34e9c30025fb1300a25e53c2c9aa794ad377af4 (diff)
ocamlPackages.soundtouch: init at 0.1.9
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/ocaml-modules/soundtouch/default.nix23
-rw-r--r--pkgs/top-level/ocaml-packages.nix4
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/soundtouch/default.nix b/pkgs/development/ocaml-modules/soundtouch/default.nix
new file mode 100644
index 0000000000000..fc79664d06bbe
--- /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 e7908de5ec9fa..53ea214cba40e 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 {