5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
61 lines
1 KiB
Nix
61 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, autoconf-archive
|
|
, alsa-lib
|
|
, fftw
|
|
, iniparser
|
|
, libpulseaudio
|
|
, pipewire
|
|
, ncurses
|
|
, pkgconf
|
|
, SDL2
|
|
, libGL
|
|
, withSDL2 ? false
|
|
, withPipewire ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cava";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karlstav";
|
|
repo = "cava";
|
|
rev = version;
|
|
hash = "sha256-W/2B9iTcO2F2vHQzcbg/6pYBwe+rRNfADdOiw4NY9Jk=";
|
|
};
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
fftw
|
|
libpulseaudio
|
|
ncurses
|
|
iniparser
|
|
] ++ lib.optionals withSDL2 [
|
|
SDL2
|
|
libGL
|
|
] ++ lib.optionals withPipewire [
|
|
pipewire
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
autoconf-archive
|
|
pkgconf
|
|
];
|
|
|
|
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.linux;
|
|
mainProgram = "cava";
|
|
};
|
|
}
|