nixpkgs/pkgs/development/libraries/rnnoise-plugin/default.nix
Jamie Quigley dfcb1937b1
rnnoise-plugin: 0.91 -> 1.03
Also add myself as a maintainer
2022-10-19 23:26:16 +01:00

62 lines
1.3 KiB
Nix

{ lib
, stdenv
, cmake
, fetchFromGitHub
, freetype
, gtk3-x11
, mount
, pcre
, pkg-config
, webkitgtk
, xorg
, llvmPackages
, WebKit
, MetalKit
, CoreAudioKit
, simd
}:
stdenv.mkDerivation rec {
pname = "rnnoise-plugin";
version = "1.03";
src = fetchFromGitHub {
owner = "werman";
repo = "noise-suppression-for-voice";
rev = "v${version}";
sha256 = "sha256-1DgrpGYF7G5Zr9vbgtKm/Yv0HSdI7LrFYPSGKYNnNDQ=";
};
nativeBuildInputs = [ cmake pkg-config ];
patches = lib.optionals stdenv.isDarwin [
# Ubsan seems to be broken on aarch64-darwin, it produces linker errors similar to https://github.com/NixOS/nixpkgs/issues/140751
./disable-ubsan.patch
];
buildInputs =
[
freetype
gtk3-x11
pcre
xorg.libX11
xorg.libXrandr
] ++ lib.optionals stdenv.isLinux [
webkitgtk
] ++ lib.optionals stdenv.isDarwin [
WebKit
MetalKit
CoreAudioKit
simd
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
meta = with lib; {
description = "A real-time noise suppression plugin for voice based on Xiph's RNNoise";
homepage = "https://github.com/werman/noise-suppression-for-voice";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ panaeon henrikolsson sciencentistguy ];
};
}