1{ lib, stdenv, SDL2, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "rnnoise-plugin";
5 version = "0.91";
6
7 src = fetchFromGitHub {
8 owner = "werman";
9 repo = "noise-suppression-for-voice";
10 rev = "v${version}";
11 sha256 = "11pwisbcks7g0mdgcrrv49v3ci1l6m26bbb7f67xz4pr1hai5dwc";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
17
18 meta = with lib; {
19 description = "A real-time noise suppression plugin for voice based on Xiph's RNNoise";
20 homepage = "https://github.com/werman/noise-suppression-for-voice";
21 license = licenses.gpl3;
22 platforms = platforms.all;
23 maintainers = with maintainers; [ panaeon henrikolsson ];
24 };
25}