diff --git a/pkgs/applications/misc/cli-visualizer/default.nix b/pkgs/applications/misc/cli-visualizer/default.nix index 112341dcd4f0..57b3f906cabf 100644 --- a/pkgs/applications/misc/cli-visualizer/default.nix +++ b/pkgs/applications/misc/cli-visualizer/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, fftw, ncurses5, libpulseaudio, makeWrapper }: +{ stdenv, fetchFromGitHub, cmake, fftw, ncurses5, libpulseaudio, makeWrapper }: stdenv.mkDerivation rec { version = "1.8"; @@ -15,13 +15,13 @@ stdenv.mkDerivation rec { sed '1i#include ' -i src/Transformer/SpectrumCircleTransformer.cpp ''; + nativeBuildInputs = [ cmake ]; + buildInputs = [ fftw ncurses5 libpulseaudio makeWrapper ]; buildFlags = [ "ENABLE_PULSE=1" ]; - installPhase = '' - mkdir -p $out/bin - cp build/vis $out/bin/vis + postInstall = '' # See https://github.com/dpayne/cli-visualizer/issues/62#issuecomment-330738075 wrapProgram $out/bin/vis --set TERM rxvt-256color '';