Files
quantenzitrone 44560ee9f7 various: make all uses of fixed point builders use finalAttrs as argument
some of these were just typos like `finalAttr`, `finalAtts` or `finaAttrs`
some of these were using `self`, `final`, `finalPackage`, `attrs` or `_`
some of these were wrong by using `oldAttrs` or `finalPackages`

other than the nixos manual this shouldn't create any rebuilds
2026-02-06 23:22:29 +01:00

72 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
meson,
ninja,
jack2,
alsa-lib,
libopus,
libsamplerate,
libsndfile,
readline,
zita-alsa-pcmi,
zita-resampler,
enableAlsa ? stdenv.hostPlatform.isLinux,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "jack-example-tools";
version = "4";
src = fetchFromGitHub {
owner = "jackaudio";
repo = "jack-example-tools";
rev = "tags/${finalAttrs.version}";
hash = "sha256-5jmynNxwNVLxEZ1MaqQUG6kRwipDkjhrdDCbZHtmAHk=";
};
postPatch = ''
patchShebangs scripts
'';
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
jack2
(libopus.override { withCustomModes = true; })
libsamplerate
libsndfile
readline
]
++ lib.optionals enableAlsa [
alsa-lib
zita-alsa-pcmi
zita-resampler
];
mesonFlags = [
(lib.mesonEnable "alsa_in_out" enableAlsa)
(lib.mesonEnable "zalsa" enableAlsa)
];
# no tests defined, but prepare for some in the future.
doCheck = true;
meta = {
description = "Official examples and tools from the JACK project";
homepage = "https://jackaudio.org";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = [ ];
};
})