diff --git a/pkgs/applications/misc/cli-visualizer/default.nix b/pkgs/applications/misc/cli-visualizer/default.nix new file mode 100644 index 000000000000..e24c99216ea2 --- /dev/null +++ b/pkgs/applications/misc/cli-visualizer/default.nix @@ -0,0 +1,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 = "7b0c69a16b4854149522e2d0ec544412fb368cecba771d1e9481330ed86c8cb7"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b00936506435..fdc8acfd4947 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -790,6 +790,8 @@ let cli53 = callPackage ../tools/admin/cli53 { }; + cli-visualizer = callPackage ../applications/misc/cli-visualizer { }; + cloud-init = callPackage ../tools/virtualization/cloud-init { }; clib = callPackage ../tools/package-management/clib { };