Merge pull request #276460 from ralismark/deepfilter-ladspa

deepfilternet: init at 0.5.6
This commit is contained in:
Peder Bergebakken Sundt 2024-02-10 12:47:44 +01:00 committed by GitHub
commit f5ccf81a9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5385 additions and 0 deletions

View File

@ -2,6 +2,7 @@
, stdenv
, appstream-glib
, desktop-file-utils
, deepfilternet
, fetchFromGitHub
, calf
, fftw
@ -60,6 +61,7 @@ stdenv.mkDerivation rec {
buildInputs = [
appstream-glib
deepfilternet
fftw
fftwFloat
fmt_9
@ -95,6 +97,7 @@ stdenv.mkDerivation rec {
zam-plugins # maximizer
];
ladspaPlugins = [
deepfilternet # deep noise remover
rubberband # pitch shifting
];
in

5341
pkgs/by-name/de/deepfilternet/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "deepfilternet";
version = "0.5.6";
src = fetchFromGitHub {
owner = "Rikorose";
repo = "DeepFilterNet";
rev = "v${version}";
hash = "sha256-5bYbfO1kmduNm9YV5niaaPvRIDRmPt4QOX7eKpK+sWY=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"hdf5-0.8.1" = "sha256-qWF2mURVblSLPbt4oZSVxIxI/RO3ZNcZdwCdaOTACYs=";
};
};
# only the ladspa plugin part has been packaged so far...
buildAndTestSubdir = "ladspa";
postInstall = ''
mkdir $out/lib/ladspa
mv $out/lib/libdeep_filter_ladspa${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/ladspa/
'';
meta = {
description = "Noise supression using deep filtering";
homepage = "https://github.com/Rikorose/DeepFilterNet";
license = with lib.licenses; [ mit asl20 ];
maintainers = with lib.maintainers; [ ralismark ];
changelog = "https://github.com/Rikorose/DeepFilterNet/releases/tag/${src.rev}";
};
}