linuxsampler: svn-2340 -> 2.1.0

+15 -70
+14 -17
pkgs/applications/audio/linuxsampler/default.nix
··· 1 - { stdenv, fetchsvn, alsaLib, asio, autoconf, automake, bison 2 - , libjack2, libgig, libsndfile, libtool, lv2, pkgconfig }: 1 + { stdenv, fetchurl, autoconf, automake, bison, libtool, pkgconfig, which 2 + , alsaLib, asio, libjack2, libgig, libsndfile, lv2 }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "linuxsampler-svn-${version}"; 6 - version = "2340"; 5 + name = "linuxsampler-${version}"; 6 + version = "2.1.0"; 7 7 8 - src = fetchsvn { 9 - url = "https://svn.linuxsampler.org/svn/linuxsampler/trunk"; 10 - rev = "${version}"; 11 - sha256 = "0zsrvs9dwwhjx733m45vfi11yjkqv33z8qxn2i9qriq5zs1f0kd7"; 8 + src = fetchurl { 9 + url = "http://download.linuxsampler.org/packages/${name}.tar.bz2"; 10 + sha256 = "0fdxpw7jjfi058l95131d6d8538h05z7n94l60i6mhp9xbplj2jf"; 12 11 }; 13 12 14 - patches = ./linuxsampler_lv2_sfz_fix.diff; 15 - 16 13 # It fails to compile without this option. I'm not sure what the bug 17 14 # is, but everything works OK for me (goibhniu). 18 15 configureFlags = [ "--disable-nptl-bug-check" ]; 19 16 20 17 preConfigure = '' 21 - sed -e 's/which/type -P/g' -i scripts/generate_parser.sh 22 - make -f Makefile.cvs 18 + make -f Makefile.svn 23 19 ''; 24 20 25 - buildInputs = [ 26 - alsaLib asio autoconf automake bison libjack2 libgig libsndfile 27 - libtool lv2 pkgconfig 28 - ]; 21 + nativeBuildInputs = [ autoconf automake bison libtool pkgconfig which ]; 22 + 23 + buildInputs = [ alsaLib asio libjack2 libgig libsndfile lv2 ]; 24 + 25 + enableParallelBuilding = true; 29 26 30 27 meta = with stdenv.lib; { 31 28 homepage = http://www.linuxsampler.org; ··· 40 37 prior written permission by the LinuxSampler authors. If you 41 38 have questions on the subject, that are not yet covered by the 42 39 FAQ, please contact us. 43 - ''; 40 + ''; 44 41 license = licenses.unfree; 45 42 maintainers = [ maintainers.goibhniu ]; 46 43 platforms = platforms.linux;
-50
pkgs/applications/audio/linuxsampler/linuxsampler_lv2_sfz_fix.diff
··· 1 - Index: linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp 2 - =================================================================== 3 - --- linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (revision 2359) 4 - +++ linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (working copy) 5 - @@ -18,6 +18,8 @@ 6 - * MA 02110-1301 USA * 7 - ***************************************************************************/ 8 - 9 - +#define _BSD_SOURCE 1 /* for realpath() */ 10 - + 11 - #include <algorithm> 12 - #include <cassert> 13 - #include <cstdio> 14 - @@ -118,6 +120,23 @@ 15 - dmsg(2, ("linuxsampler: Deactivate\n")); 16 - } 17 - 18 - + static String RealPath(const String& path) 19 - + { 20 - + String out = path; 21 - + char* cpath = NULL; 22 - +#ifdef _WIN32 23 - + cpath = (char*)malloc(MAX_PATH); 24 - + GetFullPathName(path.c_str(), MAX_PATH, cpath, NULL); 25 - +#else 26 - + cpath = realpath(path.c_str(), NULL); 27 - +#endif 28 - + if (cpath) { 29 - + out = cpath; 30 - + free(cpath); 31 - + } 32 - + return out; 33 - + } 34 - + 35 - String PluginLv2::PathToState(const String& path) { 36 - if (MapPath) { 37 - char* cstr = MapPath->abstract_path(MapPath->handle, path.c_str()); 38 - @@ -131,9 +150,10 @@ 39 - String PluginLv2::PathFromState(const String& path) { 40 - if (MapPath) { 41 - char* cstr = MapPath->absolute_path(MapPath->handle, path.c_str()); 42 - - const String abstract_path(cstr); 43 - + // Resolve symbolic links so SFZ sample paths load correctly 44 - + const String absolute_path(RealPath(cstr)); 45 - free(cstr); 46 - - return abstract_path; 47 - + return absolute_path; 48 - } 49 - return path; 50 - }
+1 -3
pkgs/top-level/all-packages.nix
··· 15636 15636 polarssl = mbedtls_1_3; 15637 15637 }; 15638 15638 15639 - linuxsampler = callPackage ../applications/audio/linuxsampler { 15640 - bison = bison2; 15641 - }; 15639 + linuxsampler = callPackage ../applications/audio/linuxsampler { }; 15642 15640 15643 15641 llpp = ocaml-ng.ocamlPackages.callPackage ../applications/misc/llpp { }; 15644 15642