nixpkgs/pkgs/applications/audio/cava/default.nix

39 lines
933 B
Nix
Raw Normal View History

2016-05-10 11:48:38 +02:00
{ stdenv, fetchFromGitHub, autoreconfHook, alsaLib, fftw,
libpulseaudio, ncurses }:
stdenv.mkDerivation rec {
pname = "cava";
version = "0.6.1";
2016-05-10 11:48:38 +02:00
buildInputs = [
alsaLib
fftw
libpulseaudio
ncurses
];
2016-05-10 11:48:38 +02:00
src = fetchFromGitHub {
owner = "karlstav";
repo = "cava";
rev = version;
sha256 = "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy";
};
2016-05-10 11:48:38 +02:00
nativeBuildInputs = [ autoreconfHook ];
postConfigure = ''
2018-01-20 23:30:22 +01:00
substituteInPlace Makefile.am \
2016-05-10 11:48:38 +02:00
--replace "-L/usr/local/lib -Wl,-rpath /usr/local/lib" ""
2018-01-20 23:30:22 +01:00
substituteInPlace configure.ac \
--replace "/usr/share/consolefonts" "$out/share/consolefonts"
'';
meta = with stdenv.lib; {
description = "Console-based Audio Visualizer for Alsa";
homepage = https://github.com/karlstav/cava;
2016-05-10 11:48:38 +02:00
license = licenses.mit;
maintainers = with maintainers; [ offline mirrexagon ];
platforms = platforms.linux;
};
}