pulse-visualizer: init at 1.0.1
Append to maintainers list Append to maintainers list V2 Append new line to package Rebase Apply suggested changes Update platforms Co-authored-by: Yiyu Zhou <yiyuzhou19@gmail.com> Update platforms V2 Co-authored-by: Yiyu Zhou <yiyuzhou19@gmail.com> pulse-visualizer: init at 1.2.2 Fix minor issue with version number, extra v
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
ninja,
|
||||
pkg-config,
|
||||
sdl3,
|
||||
libpulseaudio,
|
||||
pipewire,
|
||||
fftwFloat,
|
||||
freetype,
|
||||
glew,
|
||||
libGL,
|
||||
yaml-cpp,
|
||||
libebur128,
|
||||
clang,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "pulse-visualizer";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Audio-Solutions";
|
||||
repo = "pulse-visualizer";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-OnZDNNDmN+OgsfzyPOtlpy8alt62WA6BNhNPJTtrHsU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
clang
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sdl3
|
||||
libpulseaudio
|
||||
pipewire
|
||||
fftwFloat
|
||||
freetype
|
||||
glew
|
||||
libGL
|
||||
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"
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
];
|
||||
|
||||
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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user