2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
pname = "rnnoise";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "2021-01-22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xiph";
|
|
|
|
repo = "rnnoise";
|
2021-03-20 04:20:00 +00:00
|
|
|
rev = "1cbdbcf1283499bbb2230a6b0f126eb9b236defd";
|
|
|
|
sha256 = "1y0rzgmvy8bf9a431garpm2w177s6ajgf79y5ymw4yb0pik57rwb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dt $out/bin examples/.libs/rnnoise_demo
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Recurrent neural network for audio noise reduction";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://people.xiph.org/~jm/demo/rnnoise/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.nh2 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "rnnoise_demo";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|