cli-visualizer: fix

This commit is contained in:
Silvan Mosberger 2017-10-13 14:47:23 +02:00
parent cd0655c181
commit 6f38c8e182
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fftw, ncurses, libpulseaudio }: { stdenv, fetchFromGitHub, fftw, ncurses5, libpulseaudio, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.5"; version = "1.5";
@ -15,13 +15,15 @@ stdenv.mkDerivation rec {
sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
''; '';
buildInputs = [ fftw ncurses libpulseaudio ]; buildInputs = [ fftw ncurses5 libpulseaudio makeWrapper ];
buildFlags = [ "ENABLE_PULSE=1" ]; buildFlags = [ "ENABLE_PULSE=1" ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp build/vis $out/bin/vis cp build/vis $out/bin/vis
# See https://github.com/dpayne/cli-visualizer/issues/62#issuecomment-330738075
wrapProgram $out/bin/vis --set TERM rxvt-256color
''; '';
meta = { meta = {