@@ -0,0 +1,90 @@
1+{ stdenv
2+, fetchFromGitHub
3+, meson
4+, ninja
5+, pkgconfig
6+, libxml2
7+, desktop-file-utils
8+, wrapGAppsHook
9+, gst_all_1
10+, pulseaudio
11+, gtk3
12+, glib
13+, glibmm
14+, gtkmm3
15+, lilv
16+, lv2
17+, serd
18+, sord
19+, sratom
20+, libbs2b
21+, boost
22+, calf
23+, zam-plugins
24+, rubberband
25+, mda_lv2
26+}:
27+
28+let
29+ lv2Plugins = [
30+ calf # limiter, compressor exciter, bass enhancer and others
31+ mda_lv2 # loudness
32+ ];
33+ ladspaPlugins = [
34+ rubberband # pitch shifting
35+ zam-plugins # maximizer
36+ ];
37+in stdenv.mkDerivation rec {
38+ name = "pulseeffects-${version}";
39+ version = "4.1.3";
40+
41+ src = fetchFromGitHub {
42+ owner = "wwmm";
43+ repo = "pulseeffects";
44+ rev = "v${version}";
45+ sha256 = "1f89msg8hzaf1pa9w3gaifb88dm0ca2wd81jlz3vr98hm7kxd85k";
46+ };
47+
48+ nativeBuildInputs = [
49+ meson
50+ ninja
51+ pkgconfig
52+ libxml2
53+ desktop-file-utils
54+ wrapGAppsHook
55+ ];
56+
57+ buildInputs = [
58+ pulseaudio
59+ glib
60+ glibmm
61+ gtk3
62+ gtkmm3
63+ gst_all_1.gstreamer
64+ gst_all_1.gst-plugins-good
65+ gst_all_1.gst-plugins-bad
66+ lilv lv2 serd sord sratom
67+ libbs2b
68+ boost
69+ ];
70+
71+ postPatch = ''
72+ chmod +x meson_post_install.py
73+ patchShebangs meson_post_install.py
74+ '';
75+
76+ preFixup = ''
77+ gappsWrapperArgs+=(
78+ --set LV2_PATH "${stdenv.lib.makeSearchPath "lib/lv2" lv2Plugins}"
79+ --set LADSPA_PATH "${stdenv.lib.makeSearchPath "lib/ladspa" ladspaPlugins}"
80+ )
81+ '';
82+
83+ meta = with stdenv.lib; {
84+ description = "Limiter, compressor, reverberation, equalizer and auto volume effects for Pulseaudio applications";
85+ homepage = https://github.com/wwmm/pulseeffects;
86+ license = licenses.gpl3;
87+ maintainers = with maintainers; [ jtojnar ];
88+ platforms = platforms.linux;
89+ };
90+}