@@ -1,5 +1,6 @@
11{ lib, stdenv
22, fetchFromGitHub
3+, fetchpatch
34, meson
45, ninja
56, pkg-config
@@ -45,13 +46,15 @@ let
4546 ];
4647in stdenv.mkDerivation rec {
4748 pname = "pulseeffects";
48− version = "5.0.0";
49+ # 5.0.3 crashes. Test carefully before updating.
50+ # https://github.com/wwmm/pulseeffects/issues/927
51+ version = "5.0.2";
4952
5053 src = fetchFromGitHub {
5154 owner = "wwmm";
5255 repo = "pulseeffects";
5356 rev = "v${version}";
54− sha256 = "1zs13bivxlgcb24lz1pgmgy2chcjxnmn4lz7g1n0ygiaaj4c30xj";
57+ sha256 = "14ir25q6bws26im6qmj3k6hkfdh5pc6mbvln7wkdwy5dv0vix3cm";
5558 };
5659
5760 nativeBuildInputs = [
@@ -87,6 +90,15 @@ in stdenv.mkDerivation rec {
8790 zita-convolver
8891 ];
8992
93+ patches = [
94+ (fetchpatch {
95+ # Fix build failure.
96+ # https://github.com/wwmm/pulseeffects/pull/934
97+ url = "https://github.com/wwmm/pulseeffects/commit/ab7354a6850d23840b4c9af212dbebf4f31a562f.patch";
98+ sha256 = "1hd05xn6sp0xs632mqgwk19hl40kh2f69mx5mgzahysrj057w22c";
99+ })
100+ ];
101+
90102 postPatch = ''
91103 chmod +x meson_post_install.py
92104 patchShebangs meson_post_install.py
@@ -104,6 +116,8 @@ in stdenv.mkDerivation rec {
104116 BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
105117 BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
106118
119+ separateDebugInfo = true;
120+
107121 meta = with lib; {
108122 description = "Limiter, compressor, reverberation, equalizer and auto volume effects for Pulseaudio applications";
109123 homepage = "https://github.com/wwmm/pulseeffects";