2023-08-16 19:54:35 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2023-09-03 17:36:06 +01:00
|
|
|
, autoconf-archive
|
2023-08-16 19:54:35 +01:00
|
|
|
, alsa-lib
|
|
|
|
, fftw
|
|
|
|
, iniparser
|
|
|
|
, libpulseaudio
|
2023-09-03 17:36:06 +01:00
|
|
|
, pipewire
|
2023-08-16 19:54:35 +01:00
|
|
|
, ncurses
|
|
|
|
, pkgconf
|
2023-08-25 17:06:58 +01:00
|
|
|
, SDL2
|
2023-09-03 17:36:06 +01:00
|
|
|
, libGL
|
2023-08-25 17:06:58 +01:00
|
|
|
, withSDL2 ? false
|
2023-09-12 19:43:40 +01:00
|
|
|
, withPipewire ? true
|
2023-08-16 19:54:35 +01:00
|
|
|
}:
|
2014-12-11 23:09:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cava";
|
2024-05-15 02:25:56 +01:00
|
|
|
version = "0.10.2";
|
2023-08-16 19:54:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlstav";
|
|
|
|
repo = "cava";
|
|
|
|
rev = version;
|
2024-05-15 02:25:56 +01:00
|
|
|
hash = "sha256-y6RslsU/zmr0Ai/rnr73N3OtjuBcWa3JCwh9P5GkNss=";
|
2023-08-16 19:54:35 +01:00
|
|
|
};
|
2014-12-11 23:09:24 +00:00
|
|
|
|
2016-05-10 10:48:38 +01:00
|
|
|
buildInputs = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2016-05-10 10:48:38 +01:00
|
|
|
fftw
|
|
|
|
libpulseaudio
|
|
|
|
ncurses
|
2022-10-31 03:08:52 +00:00
|
|
|
iniparser
|
2023-09-03 17:36:06 +01:00
|
|
|
] ++ lib.optionals withSDL2 [
|
|
|
|
SDL2
|
|
|
|
libGL
|
|
|
|
] ++ lib.optionals withPipewire [
|
|
|
|
pipewire
|
|
|
|
];
|
2014-12-11 23:09:24 +00:00
|
|
|
|
2023-08-16 19:54:35 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2023-09-03 17:36:06 +01:00
|
|
|
autoconf-archive
|
2023-08-16 19:54:35 +01:00
|
|
|
pkgconf
|
|
|
|
];
|
2014-12-11 23:09:24 +00:00
|
|
|
|
2023-08-16 19:54:35 +01:00
|
|
|
preAutoreconf = ''
|
|
|
|
echo ${version} > version
|
|
|
|
'';
|
2016-05-10 10:48:38 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-12-11 23:09:24 +00:00
|
|
|
description = "Console-based Audio Visualizer for Alsa";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/karlstav/cava";
|
2016-05-10 10:48:38 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ offline mirrexagon ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2023-08-04 16:54:47 +01:00
|
|
|
mainProgram = "cava";
|
2014-12-11 23:09:24 +00:00
|
|
|
};
|
|
|
|
}
|