2017-01-03 11:37:17 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, ncurses, libpulseaudio }:
|
2016-02-06 21:25:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-03 11:37:17 +00:00
|
|
|
version = "1.5";
|
2016-02-06 21:25:22 +00:00
|
|
|
name = "cli-visualizer-${version}";
|
|
|
|
|
2017-01-03 11:37:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpayne";
|
|
|
|
repo = "cli-visualizer";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "18qv4ya64qmczq94dnynrnzn7pwhmzbn14r05qcvbbwv7r8gclzs";
|
2016-02-06 21:25:22 +00:00
|
|
|
};
|
|
|
|
|
2016-06-19 08:18:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
|
|
|
|
'';
|
|
|
|
|
2016-02-06 21:25:22 +00:00
|
|
|
buildInputs = [ fftw ncurses libpulseaudio ];
|
|
|
|
|
|
|
|
buildFlags = [ "ENABLE_PULSE=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/vis $out/bin/vis
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/dpayne/cli-visualizer;
|
2016-02-06 21:25:22 +00:00
|
|
|
description = "CLI based audio visualizer";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|