Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
obs-studio,
|
|
pkg-config,
|
|
fftwFloat,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "waveform";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
fetchSubmodules = true;
|
|
owner = "phandasm";
|
|
repo = "waveform";
|
|
rev = "v${version}";
|
|
hash = "sha256-Bg1n1yV4JzNFEXFNayNa1exsSZhmRJ0RLHDjLWmqGZE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace \
|
|
src/source.hpp src/source.cpp src/source_generic.cpp \
|
|
src/source_avx2.cpp src/source_avx.cpp \
|
|
--replace circlebuf deque
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
postFixup = ''
|
|
mkdir -p $out/lib $out/share/obs/obs-plugins
|
|
mv $out/${pname}/bin/64bit $out/lib/obs-plugins
|
|
mv $out/${pname}/data $out/share/obs/obs-plugins/${pname}
|
|
rm -rf $out/${pname}
|
|
'';
|
|
|
|
buildInputs = [
|
|
obs-studio
|
|
fftwFloat
|
|
];
|
|
|
|
meta = {
|
|
description = "Audio spectral analysis plugin for OBS";
|
|
homepage = "https://github.com/phandasm/waveform";
|
|
maintainers = with lib.maintainers; [ matthewcroughan ];
|
|
license = lib.licenses.gpl3;
|
|
# Hard coded x86_64 support
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|