2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, alsa-lib, fftw,
|
2016-05-10 10:48:38 +01:00
|
|
|
libpulseaudio, ncurses }:
|
2014-12-11 23:09:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cava";
|
2021-05-19 04:17:52 +01:00
|
|
|
version = "0.7.4";
|
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
|
|
|
|
];
|
2014-12-11 23:09:24 +00:00
|
|
|
|
2016-05-10 10:48:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlstav";
|
|
|
|
repo = "cava";
|
2014-12-11 23:09:24 +00:00
|
|
|
rev = version;
|
2021-05-19 04:17:52 +01:00
|
|
|
sha256 = "sha256-BlHGst34aUgQcXcuQG43VnKUTclCxfQmWRa6iCud8dc=";
|
2014-12-11 23:09:24 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:48:38 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
2018-01-20 22:30:22 +00:00
|
|
|
substituteInPlace Makefile.am \
|
2016-05-10 10:48:38 +01:00
|
|
|
--replace "-L/usr/local/lib -Wl,-rpath /usr/local/lib" ""
|
2018-01-20 22:30:22 +00:00
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "/usr/share/consolefonts" "$out/share/consolefonts"
|
2014-12-11 23:09:24 +00: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;
|
2014-12-11 23:09:24 +00:00
|
|
|
};
|
|
|
|
}
|