about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-09-04 20:20:15 +0200
committerpennae <github@quasiparticle.net>2023-09-04 20:49:55 +0200
commit9ee9dfac229a2930f13c393c83a67cba5bb19808 (patch)
treeb23cc04a71c0f0d410d2aff6f0c407870a9f045b /pkgs/misc
parenta9fea43703c233740cd6200f1acd6af06e160bd0 (diff)
jack-example-tools: init at 4
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/jackaudio/tools.nix58
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/misc/jackaudio/tools.nix b/pkgs/misc/jackaudio/tools.nix
new file mode 100644
index 0000000000000..1e3a74e6f6eed
--- /dev/null
+++ b/pkgs/misc/jackaudio/tools.nix
@@ -0,0 +1,58 @@
+{ stdenv
+, lib
+
+, fetchFromGitHub
+
+, pkg-config
+, meson
+, ninja
+
+, jack
+, alsa-lib
+, libopus
+, libsamplerate
+, libsndfile
+, readline
+, zita-alsa-pcmi
+, zita-resampler
+}:
+
+stdenv.mkDerivation (final: {
+  pname = "jack-example-tools";
+  version = "4";
+
+  src = fetchFromGitHub {
+    owner = "jackaudio";
+    repo = "jack-example-tools";
+    rev = "tags/${final.version}";
+    hash = "sha256-5jmynNxwNVLxEZ1MaqQUG6kRwipDkjhrdDCbZHtmAHk=";
+  };
+
+  nativeBuildInputs = [ pkg-config meson ninja ];
+  buildInputs = [
+    jack
+    alsa-lib
+    libopus
+    libsamplerate
+    libsndfile
+    readline
+    zita-alsa-pcmi
+    zita-resampler
+  ];
+
+  postPatch = ''
+    patchShebangs scripts
+  '';
+
+  # no tests defined, but prepare for some in the future.
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Official examples and tools from the JACK project";
+    homepage = "https://jackaudio.org";
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
+    broken = stdenv.isDarwin;
+    maintainers = with maintainers; [ pennae ];
+  };
+})