3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/cava/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
934 B
Nix
Raw Normal View History

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