From 9ee9dfac229a2930f13c393c83a67cba5bb19808 Mon Sep 17 00:00:00 2001 From: pennae Date: Mon, 4 Sep 2023 20:20:15 +0200 Subject: jack-example-tools: init at 4 --- pkgs/misc/jackaudio/tools.nix | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/misc/jackaudio/tools.nix (limited to 'pkgs/misc/jackaudio') 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 ]; + }; +}) -- cgit 1.4.1