nixpkgs/pkgs/applications/misc/cli-visualizer/default.nix

35 lines
855 B
Nix
Raw Normal View History

2017-01-03 12:37:17 +01:00
{ stdenv, fetchFromGitHub, fftw, ncurses, libpulseaudio }:
stdenv.mkDerivation rec {
2017-01-03 12:37:17 +01:00
version = "1.5";
name = "cli-visualizer-${version}";
2017-01-03 12:37:17 +01:00
src = fetchFromGitHub {
owner = "dpayne";
repo = "cli-visualizer";
rev = version;
sha256 = "18qv4ya64qmczq94dnynrnzn7pwhmzbn14r05qcvbbwv7r8gclzs";
};
postPatch = ''
sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
'';
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;
};
}