f1f4f38909
I'm baaaaack! This patch reverts my patch where I removed myself as maintainer because of my traveling. I'm back now and I want to maintain these packages again. This reverts commit ce1c1e3093b9652fb3a3cdc1472afbc8a84dee68.
37 lines
1020 B
Nix
37 lines
1020 B
Nix
{ stdenv, fetchFromGitHub, fftw, ncurses5, libpulseaudio, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.7";
|
|
name = "cli-visualizer-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpayne";
|
|
repo = "cli-visualizer";
|
|
rev = version;
|
|
sha256 = "06z6vj87xjmacppcxvgm47wby6mv1hnbqav8lpdk9v5s1hmmp1cr";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
|
|
'';
|
|
|
|
buildInputs = [ fftw ncurses5 libpulseaudio makeWrapper ];
|
|
|
|
buildFlags = [ "ENABLE_PULSE=1" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
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 = {
|
|
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;
|
|
};
|
|
}
|