mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
81 lines
1.5 KiB
Nix
81 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ninja,
|
|
pkg-config,
|
|
sdl3,
|
|
sdl3-image,
|
|
libpulseaudio,
|
|
pipewire,
|
|
fftwFloat,
|
|
freetype,
|
|
glew,
|
|
libGL,
|
|
curl,
|
|
yaml-cpp,
|
|
libebur128,
|
|
clang,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pulse-visualizer";
|
|
version = "1.3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Audio-Solutions";
|
|
repo = "pulse-visualizer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IzJXFbsbpRszJEpU98exK4EKGU8kHH51BZzokJwzPzU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
clang
|
|
];
|
|
|
|
buildInputs = [
|
|
sdl3
|
|
sdl3-image
|
|
libpulseaudio
|
|
pipewire
|
|
fftwFloat
|
|
freetype
|
|
glew
|
|
libGL
|
|
curl
|
|
yaml-cpp
|
|
libebur128
|
|
];
|
|
|
|
strictDeps = true;
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail " -march=native" "" \
|
|
--replace-fail " -mtune=native" "" \
|
|
--replace-fail "-Wl,-s" "" \
|
|
--replace-fail " -s" "" \
|
|
--replace-fail 'set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Installation prefix" FORCE)' ""
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-G Ninja"
|
|
"-DCMAKE_CXX_COMPILER=clang++"
|
|
"-DCMAKE_C_COMPILER=clang"
|
|
];
|
|
|
|
meta = {
|
|
description = "Real-time audio visualizer inspired by MiniMeters";
|
|
homepage = "https://github.com/Audio-Solutions/pulse-visualizer";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ miyu ];
|
|
platforms = lib.platforms.x86_64;
|
|
badPlatforms = lib.platforms.darwin;
|
|
};
|
|
})
|