cli-visualizer: Fix build

This commit is contained in:
Josef Kemetmüller 2020-09-14 21:14:56 +02:00 committed by Jon
parent be33b54672
commit ce065c6251
1 changed files with 4 additions and 4 deletions

View File

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