blob: 00fcf4298d5d1d643e71cff8ed81434ff1874c37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, obs-studio
, pkg-config
, fftwFloat
}:
stdenv.mkDerivation rec {
pname = "waveform";
version = "1.8.0";
src = fetchFromGitHub {
fetchSubmodules = true;
owner = "phandasm";
repo = "waveform";
rev = "v${version}";
sha256 = "sha256-NcBtj+5X9tPH853a6oXzQCBH26hx8Yt17WjP9ryvgmc=";
};
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;
platforms = ["x86_64-linux"];
};
}
|