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