mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
9d8a8959e5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cli-visualizer/versions. These checks were done: - built on NixOS - ran ‘/nix/store/mjifmz701jz9zxicim6wqgjgvjrhm47f-cli-visualizer-1.7/bin/vis -h’ got 0 exit code - ran ‘/nix/store/mjifmz701jz9zxicim6wqgjgvjrhm47f-cli-visualizer-1.7/bin/vis --help’ got 0 exit code - ran ‘/nix/store/mjifmz701jz9zxicim6wqgjgvjrhm47f-cli-visualizer-1.7/bin/.vis-wrapped -h’ got 0 exit code - ran ‘/nix/store/mjifmz701jz9zxicim6wqgjgvjrhm47f-cli-visualizer-1.7/bin/.vis-wrapped --help’ got 0 exit code - found 1.7 with grep in /nix/store/mjifmz701jz9zxicim6wqgjgvjrhm47f-cli-visualizer-1.7 - directory tree listing: https://gist.github.com/544d33e8edd7362d66363d64c8cabf80
37 lines
1012 B
Nix
37 lines
1012 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 = with stdenv.lib.maintainers; [ ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|