2016-05-10 11:48:38 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, alsaLib, fftw,
|
|
|
|
libpulseaudio, ncurses }:
|
2014-12-12 00:09:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cava-${version}";
|
2018-01-20 23:30:22 +01:00
|
|
|
version = "0.6.0";
|
2014-12-12 00:09:24 +01:00
|
|
|
|
2016-05-10 11:48:38 +02:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
fftw
|
|
|
|
libpulseaudio
|
|
|
|
ncurses
|
|
|
|
];
|
2014-12-12 00:09:24 +01:00
|
|
|
|
2016-05-10 11:48:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlstav";
|
|
|
|
repo = "cava";
|
2014-12-12 00:09:24 +01:00
|
|
|
rev = version;
|
2018-01-20 23:30:22 +01:00
|
|
|
sha256 = "01maaq5pfd4a7zilgarwr1nl7jbqyrvir6w7ikchggsckrlk23wr";
|
2014-12-12 00:09:24 +01:00
|
|
|
};
|
|
|
|
|
2016-05-10 11:48:38 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
2018-01-20 23:30:22 +01:00
|
|
|
substituteInPlace Makefile.am \
|
2016-05-10 11:48:38 +02:00
|
|
|
--replace "-L/usr/local/lib -Wl,-rpath /usr/local/lib" ""
|
2018-01-20 23:30:22 +01:00
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "/usr/share/consolefonts" "$out/share/consolefonts"
|
2014-12-12 00:09:24 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Console-based Audio Visualizer for Alsa";
|
|
|
|
homepage = https://github.com/karlstav/cava;
|
2016-05-10 11:48:38 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ offline mirrexagon ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2014-12-12 00:09:24 +01:00
|
|
|
};
|
|
|
|
}
|