1 { lib, stdenv, fetchFromGitHub, cmake, fftw, ncurses5, libpulseaudio, makeWrapper }:
3 stdenv.mkDerivation rec {
5 pname = "cli-visualizer";
7 src = fetchFromGitHub {
9 repo = "cli-visualizer";
11 sha256 = "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2";
15 sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
18 nativeBuildInputs = [ cmake makeWrapper ];
20 buildInputs = [ fftw ncurses5 libpulseaudio ];
22 buildFlags = [ "ENABLE_PULSE=1" ];
25 # See https://github.com/dpayne/cli-visualizer/issues/62#issuecomment-330738075
26 wrapProgram $out/bin/vis --set TERM rxvt-256color
30 homepage = "https://github.com/dpayne/cli-visualizer";
31 description = "CLI based audio visualizer";
32 license = lib.licenses.mit;
33 maintainers = [ lib.maintainers.matthiasbeyer ];
34 platforms = with lib.platforms; linux;