mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
39 lines
935 B
Nix
39 lines
935 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, alsaLib, fftw,
|
|
libpulseaudio, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cava";
|
|
version = "0.7.2";
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
fftw
|
|
libpulseaudio
|
|
ncurses
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karlstav";
|
|
repo = "cava";
|
|
rev = version;
|
|
sha256 = "1chc08spjf5i17n8y48aqzdxsj8vvf0r2l62ldw2pqgw60dacvs1";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
postConfigure = ''
|
|
substituteInPlace Makefile.am \
|
|
--replace "-L/usr/local/lib -Wl,-rpath /usr/local/lib" ""
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ offline mirrexagon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|