nixpkgs/pkgs/development/libraries/rnnoise/default.nix

28 lines
705 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation (rec {
pname = "rnnoise";
2020-12-13 12:35:41 +01:00
version = "2020-06-28";
src = fetchFromGitHub {
owner = "xiph";
repo = "rnnoise";
2020-12-13 12:35:41 +01:00
rev = "90ec41ef659fd82cfec2103e9bb7fc235e9ea66c";
sha256 = "02z6qzjajhlpsb80lwl7cqqga9hm638psnqnppjkw84w4lrp15ny";
};
nativeBuildInputs = [ autoreconfHook ];
postInstall = ''
install -Dt $out/bin examples/.libs/rnnoise_demo
'';
meta = with lib; {
homepage = "https://people.xiph.org/~jm/demo/rnnoise/";
description = "Recurrent neural network for audio noise reduction";
license = licenses.bsd3;
maintainers = [ maintainers.nh2 ];
platforms = platforms.all;
};
})