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