mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 14:14:20 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1015 B
Nix
38 lines
1015 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, fftw, ncurses5, libpulseaudio, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.8";
|
|
pname = "cli-visualizer";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpayne";
|
|
repo = "cli-visualizer";
|
|
rev = "v${version}";
|
|
sha256 = "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed '1i#include <cmath>' -i src/Transformer/SpectrumCircleTransformer.cpp
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
buildInputs = [ fftw ncurses5 libpulseaudio ];
|
|
|
|
buildFlags = [ "ENABLE_PULSE=1" ];
|
|
|
|
postInstall = ''
|
|
# See https://github.com/dpayne/cli-visualizer/issues/62#issuecomment-330738075
|
|
wrapProgram $out/bin/vis --set TERM rxvt-256color
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/dpayne/cli-visualizer";
|
|
description = "CLI based audio visualizer";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.matthiasbeyer ];
|
|
platforms = with lib.platforms; linux;
|
|
mainProgram = "vis";
|
|
};
|
|
}
|