about summary refs log tree commit diff
path: root/pkgs/misc/jackaudio
diff options
context:
space:
mode:
authorpennae <82953136+pennae@users.noreply.github.com>2023-09-08 15:23:25 +0200
committerGitHub <noreply@github.com>2023-09-08 15:23:25 +0200
commit6054951ae5ee8d67229025bb9bd585ec39498dc2 (patch)
treedac7cfb52898f8f9ea4da581bc8c90b3f4e5b8e6 /pkgs/misc/jackaudio
parent0873820b57cf57936c1ad8ebccd10826e051c181 (diff)
parent6e56e31d38828196d67434e73338fa1c658d2ecb (diff)
downloadnixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar.gz
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar.bz2
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar.lz
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar.xz
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.tar.zst
nixlib-6054951ae5ee8d67229025bb9bd585ec39498dc2.zip
Merge pull request #253299 from pennae/jack-tools
jack-example-tools: init at 4
Diffstat (limited to 'pkgs/misc/jackaudio')
-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 000000000000..1e3a74e6f6ee
--- /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 ];
+  };
+})