2016-05-10 10:48:38 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, alsaLib, fftw,
|
|
|
|
libpulseaudio, ncurses }:
|
2014-12-11 23:09:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cava-${version}";
|
2016-05-10 10:48:38 +01:00
|
|
|
version = "0.4.1";
|
2014-12-11 23:09:24 +00:00
|
|
|
|
2016-05-10 10:48:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
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;
|
2016-05-10 10:48:38 +01:00
|
|
|
sha256 = "157hw4cn3qjic7ymn5vy67paxmzssc33h1zswx72ss7j6nc8707f";
|
2014-12-11 23:09:24 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:48:38 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "-L/usr/local/lib -Wl,-rpath /usr/local/lib" ""
|
2014-12-11 23:09:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Console-based Audio Visualizer for Alsa";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|