guitarix: 0.39.0 -> 0.40.0
This commit is contained in:
parent
21836f4859
commit
d838d2fdf9
@ -1,8 +1,38 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, faust, gettext, intltool, pkgconfig, python2
|
{ stdenv
|
||||||
, avahi, bluez, boost, eigen, fftw, glib, glib-networking
|
, fetchurl
|
||||||
, glibmm, gsettings-desktop-schemas, gtkmm2, libjack2
|
, avahi
|
||||||
, ladspaH, libav, libsndfile, lilv, lrdf, lv2, serd, sord, sratom
|
, bluez
|
||||||
, wrapGAppsHook, zita-convolver, zita-resampler, curl, wafHook
|
, boost
|
||||||
|
, curl
|
||||||
|
, eigen
|
||||||
|
, fftw
|
||||||
|
, gettext
|
||||||
|
, glib
|
||||||
|
, glib-networking
|
||||||
|
, glibmm
|
||||||
|
, gnome3
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, gtk3
|
||||||
|
, gtkmm3
|
||||||
|
, hicolor-icon-theme
|
||||||
|
, intltool
|
||||||
|
, ladspaH
|
||||||
|
, libav
|
||||||
|
, libjack2
|
||||||
|
, libsndfile
|
||||||
|
, lilv
|
||||||
|
, lrdf
|
||||||
|
, lv2
|
||||||
|
, pkgconfig
|
||||||
|
, python2
|
||||||
|
, sassc
|
||||||
|
, serd
|
||||||
|
, sord
|
||||||
|
, sratom
|
||||||
|
, wafHook
|
||||||
|
, wrapGAppsHook
|
||||||
|
, zita-convolver
|
||||||
|
, zita-resampler
|
||||||
, optimizationSupport ? false # Enable support for native CPU extensions
|
, optimizationSupport ? false # Enable support for native CPU extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -12,43 +42,67 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "guitarix";
|
pname = "guitarix";
|
||||||
version = "0.39.0";
|
version = "0.40.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.xz";
|
url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.xz";
|
||||||
sha256 = "1nn80m1qagfhvv69za60f0w6ck87vmk77qmqarj7fbr8avwg63s9";
|
sha256 = "0q9050499hcj19hvbxb069vxh5yclawjg04vryh46lxm4sfy9g57";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
# see: https://sourceforge.net/p/guitarix/bugs/105
|
||||||
(fetchpatch {
|
patches = [ ./fix-build.patch ];
|
||||||
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/guitarix-0.39.0-fix_faust_and_lv2_plugins.patch?id=8579b4dfe85e04303ad2d9771ed699f04ea7b7cf";
|
|
||||||
stripLen = 1;
|
|
||||||
sha256 = "0pgkhi4v4vrzjnig0ggmz207q4x5iyk2n6rjj8s5lv15fia7qzp4";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ faust gettext intltool wrapGAppsHook pkgconfig python2 wafHook ];
|
nativeBuildInputs = [
|
||||||
|
gettext
|
||||||
|
hicolor-icon-theme
|
||||||
|
intltool
|
||||||
|
pkgconfig
|
||||||
|
python2
|
||||||
|
wafHook
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
avahi bluez boost eigen fftw glib glibmm glib-networking.out
|
avahi
|
||||||
gsettings-desktop-schemas gtkmm2 libjack2 ladspaH libav
|
bluez
|
||||||
libsndfile lilv lrdf lv2 serd sord sratom zita-convolver
|
boost
|
||||||
zita-resampler curl
|
curl
|
||||||
|
eigen
|
||||||
|
fftw
|
||||||
|
glib
|
||||||
|
glib-networking.out
|
||||||
|
glibmm
|
||||||
|
gnome3.adwaita-icon-theme
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
gtk3
|
||||||
|
gtkmm3
|
||||||
|
ladspaH
|
||||||
|
libav
|
||||||
|
libjack2
|
||||||
|
libsndfile
|
||||||
|
lilv
|
||||||
|
lrdf
|
||||||
|
lv2
|
||||||
|
sassc
|
||||||
|
serd
|
||||||
|
sord
|
||||||
|
sratom
|
||||||
|
zita-convolver
|
||||||
|
zita-resampler
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
# this doesnt build, probably because we have the wrong faust version:
|
||||||
# Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
|
# "--faust"
|
||||||
find . -type f -exec fgrep -q LV2UI_Descriptor {} \; \
|
# aproved versions are 2.20.2 and 2.15.11
|
||||||
-exec sed -i {} -e 's/const struct _\?LV2UI_Descriptor/const LV2UI_Descriptor/' \;
|
|
||||||
'';
|
|
||||||
|
|
||||||
wafConfigureFlags = [
|
wafConfigureFlags = [
|
||||||
|
"--no-faust"
|
||||||
|
"--no-font-cache-update"
|
||||||
"--shared-lib"
|
"--shared-lib"
|
||||||
"--no-desktop-update"
|
"--no-desktop-update"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--install-roboto-font"
|
"--install-roboto-font"
|
||||||
"--includeresampler"
|
"--includeresampler"
|
||||||
"--convolver-ffmpeg"
|
"--includeconvolver"
|
||||||
] ++ optional optimizationSupport "--optimization";
|
] ++ optional optimizationSupport "--optimization";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
10
pkgs/applications/audio/guitarix/fix-build.patch
Normal file
10
pkgs/applications/audio/guitarix/fix-build.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- a/src/LV2/xputty/xfilepicker.cpp
|
||||||
|
+++ b/src/LV2/xputty/xfilepicker.cpp
|
||||||
|
@@ -191,6 +191,6 @@
|
||||||
|
filepicker->selected_file = NULL;
|
||||||
|
filepicker->path = NULL;
|
||||||
|
filepicker->filter = NULL;
|
||||||
|
- asprintf(&filepicker->path, path);
|
||||||
|
+ asprintf(&filepicker->path, "%s", path);
|
||||||
|
assert(filepicker->path != NULL);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user