Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
80 lines
1.3 KiB
Nix
80 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
autoconf-archive,
|
|
alsa-lib,
|
|
fftw,
|
|
iniparser,
|
|
libGL,
|
|
libpulseaudio,
|
|
libtool,
|
|
ncurses,
|
|
pipewire,
|
|
pkgconf,
|
|
portaudio,
|
|
SDL2,
|
|
versionCheckHook,
|
|
withSDL2 ? false,
|
|
withPipewire ? stdenv.hostPlatform.isLinux,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cava";
|
|
version = "0.10.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karlstav";
|
|
repo = "cava";
|
|
rev = version;
|
|
hash = "sha256-dWPW9vd9LdGALt7Po4nZnW5HkivtZcIUBlXEFurq2os=";
|
|
};
|
|
|
|
buildInputs = [
|
|
fftw
|
|
iniparser
|
|
libpulseaudio
|
|
libtool
|
|
ncurses
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
portaudio
|
|
]
|
|
++ lib.optionals withSDL2 [
|
|
libGL
|
|
SDL2
|
|
]
|
|
++ lib.optionals withPipewire [
|
|
pipewire
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
autoconf-archive
|
|
pkgconf
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
versionCheckProgramArg = "-v";
|
|
|
|
preAutoreconf = ''
|
|
echo ${version} > version
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Console-based Audio Visualizer for Alsa";
|
|
homepage = "https://github.com/karlstav/cava";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
offline
|
|
mirrexagon
|
|
];
|
|
platforms = platforms.unix;
|
|
mainProgram = "cava";
|
|
};
|
|
}
|