2021-07-12 00:41:42 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-07-07 15:37:48 +02:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitHub
|
2021-07-12 00:41:42 +02:00
|
|
|
, calf
|
2021-07-07 15:37:48 +02:00
|
|
|
, fftwFloat
|
|
|
|
, glib
|
|
|
|
, glibmm
|
|
|
|
, gtk4
|
|
|
|
, gtkmm4
|
|
|
|
, itstool
|
|
|
|
, libbs2b
|
|
|
|
, libebur128
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, lilv
|
2021-07-12 00:41:42 +02:00
|
|
|
, lsp-plugins
|
2021-07-07 15:37:48 +02:00
|
|
|
, lv2
|
2021-10-14 02:07:15 +02:00
|
|
|
, mda_lv2
|
2021-07-07 15:37:48 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nlohmann_json
|
|
|
|
, pipewire
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, rnnoise
|
|
|
|
, rubberband
|
|
|
|
, speexdsp
|
2021-10-14 01:59:05 +02:00
|
|
|
, wrapGAppsHook4
|
2021-07-12 00:41:42 +02:00
|
|
|
, zam-plugins
|
2021-07-07 15:37:48 +02:00
|
|
|
, zita-convolver
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "easyeffects";
|
2021-10-14 02:23:31 +02:00
|
|
|
version = "6.1.3";
|
2021-07-07 15:37:48 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wwmm";
|
|
|
|
repo = "easyeffects";
|
|
|
|
rev = "v${version}";
|
2021-10-14 02:23:31 +02:00
|
|
|
sha256 = "sha256-1UfeqPJxY4YT98UdqTZtG+QUBOZlKfK+7WbszhO22A0=";
|
2021-07-07 15:37:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2021-10-14 01:59:05 +02:00
|
|
|
wrapGAppsHook4
|
2021-07-07 15:37:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fftwFloat
|
|
|
|
glib
|
|
|
|
glibmm
|
|
|
|
gtk4
|
|
|
|
gtkmm4
|
|
|
|
libbs2b
|
|
|
|
libebur128
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
lilv
|
|
|
|
lv2
|
|
|
|
nlohmann_json
|
|
|
|
pipewire
|
|
|
|
rnnoise
|
|
|
|
rubberband
|
|
|
|
speexdsp
|
|
|
|
zita-convolver
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2021-10-14 01:59:05 +02:00
|
|
|
# https://github.com/wwmm/easyeffects/pull/1205
|
|
|
|
substituteInPlace meson_post_install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
2021-07-07 15:37:48 +02:00
|
|
|
'';
|
|
|
|
|
2021-07-12 00:41:42 +02:00
|
|
|
preFixup =
|
|
|
|
let
|
|
|
|
lv2Plugins = [
|
2021-10-14 02:23:31 +02:00
|
|
|
calf # compressor exciter, bass enhancer and others
|
|
|
|
lsp-plugins # delay, limiter, multiband compressor
|
2021-10-14 02:07:15 +02:00
|
|
|
mda_lv2 # loudness
|
2021-10-14 02:13:11 +02:00
|
|
|
zam-plugins # maximizer
|
2021-07-12 00:41:42 +02:00
|
|
|
];
|
|
|
|
ladspaPlugins = [
|
|
|
|
rubberband # pitch shifting
|
|
|
|
];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--set LV2_PATH "${lib.makeSearchPath "lib/lv2" lv2Plugins}"
|
|
|
|
--set LADSPA_PATH "${lib.makeSearchPath "lib/ladspa" ladspaPlugins}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-07-07 15:37:48 +02:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Audio effects for PipeWire applications.";
|
|
|
|
homepage = "https://github.com/wwmm/easyeffects";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
}
|