sorcer: fix build with lv2 1.18.0

This commit is contained in:
Bart Brouns 2020-06-05 13:27:25 +02:00
parent 5bb1c43fc6
commit 269b95810b

View file

@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost cairomm cmake libsndfile lv2 ntk python ];
postPatch = ''
# Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
find . -type f -exec fgrep -q LV2UI_Descriptor {} \; \
-exec sed -i {} -e 's/const struct _\?LV2UI_Descriptor/const LV2UI_Descriptor/' \;
'';
installPhase = ''
make install
cp -a ../presets/* "$out/lib/lv2"