git.iko.soy/typeable/nixpkgs
on master help sign in
guitarix: fix build with lv2 1.18, enable faust plugins
commit5de1e307f29ab91baeb43ab2a58ed13a944e40ea authorOrivej Desh <orivej@gmx.fr> dateFri 22 May 2020, 08:06 (6 years ago) parente9759c1
1 file changed+16−3
pkgs/applications/audio/guitarix/default.nix+16−3
pkgs/applications/audio/guitarix/default.nix+16−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, gettext, intltool, pkgconfig, python2
1+{ stdenv, fetchurl, fetchpatch, faust, gettext, intltool, pkgconfig, python2
22, avahi, bluez, boost, eigen, fftw, glib, glib-networking
33, glibmm, gsettings-desktop-schemas, gtkmm2, libjack2
44, ladspaH, libav, libsndfile, lilv, lrdf, lv2, serd, sord, sratom
@@ -19,7 +19,15 @@ stdenv.mkDerivation rec {
1919 sha256 = "1nn80m1qagfhvv69za60f0w6ck87vmk77qmqarj7fbr8avwg63s9";
2020 };
2121
22− nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python2 wafHook ];
22+ patches = [
23+ (fetchpatch {
24+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/guitarix-0.39.0-fix_faust_and_lv2_plugins.patch?id=8579b4dfe85e04303ad2d9771ed699f04ea7b7cf";
25+ stripLen = 1;
26+ sha256 = "0pgkhi4v4vrzjnig0ggmz207q4x5iyk2n6rjj8s5lv15fia7qzp4";
27+ })
28+ ];
29+
30+ nativeBuildInputs = [ faust gettext intltool wrapGAppsHook pkgconfig python2 wafHook ];
2331
2432 buildInputs = [
2533 avahi bluez boost eigen fftw glib glibmm glib-networking.out
@@ -28,11 +36,16 @@ stdenv.mkDerivation rec {
2836 zita-resampler curl
2937 ];
3038
39+ postPatch = ''
40+ # Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
41+ find . -type f -exec fgrep -q LV2UI_Descriptor {} \; \
42+ -exec sed -i {} -e 's/const struct _\?LV2UI_Descriptor/const LV2UI_Descriptor/' \;
43+ '';
44+
3145 wafConfigureFlags = [
3246 "--shared-lib"
3347 "--no-desktop-update"
3448 "--enable-nls"
35− "--no-faust" # todo: find out why --faust doesn't work
3649 "--install-roboto-font"
3750 "--includeresampler"
3851 "--convolver-ffmpeg"