2016-02-06 21:25:22 +00:00
|
|
|
{ stdenv, fetchgit, fftw, ncurses, libpulseaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2016-06-02";
|
|
|
|
name = "cli-visualizer-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/dpayne/cli-visualizer.git";
|
|
|
|
rev = "bc0104eb57e7a0b3821510bc8f93cf5d1154fa8e";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "16768gyi85mkizfn874q2q9xf32knw08z27si3k5bk99492dxwzw";
|
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 = {
|
|
|
|
homepage = "https://github.com/dpayne/cli-visualizer";
|
|
|
|
description = "CLI based audio visualizer";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|