summary refs log tree commit diff
path: root/pkgs/applications/misc/cli-visualizer/default.nix
blob: 6b9856a996ac8e1e64640ca38e6fb48e6bc80f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, fftw, ncurses, libpulseaudio }:

stdenv.mkDerivation rec {
  version = "2016-06-02";
  name = "cli-visualizer-${version}";

  src = fetchgit {
    url = "https://github.com/dpayne/cli-visualizer.git";
    rev = "bc0104eb57e7a0b3821510bc8f93cf5d1154fa8e";
    sha256 = "16768gyi85mkizfn874q2q9xf32knw08z27si3k5bk99492dxwzw";
  };

  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;
  };
}