git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32484 from magnetophon/qsampler

qsampler: svn-2342 -> 0.4.3

commit3a20229361f748a5ee313c2df238ae7081b8eb5d authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 9 Dec 2017, 09:22 (9 years ago) parent40950f656ca5cb
8 files changed+79−116
pkgs/applications/audio/gigedit/default.nix+15−15 pkgs/applications/audio/gigedit/gigedit-1.1.0-pangomm-2.40.1.patch+15 pkgs/applications/audio/linuxsampler/default.nix+14−17 pkgs/applications/audio/linuxsampler/linuxsampler_lv2_sfz_fix.diff−50 pkgs/applications/audio/qsampler/default.nix+11−10 pkgs/development/libraries/libgig/default.nix+12−10 pkgs/development/libraries/liblscp/default.nix+10−10 pkgs/top-level/all-packages.nix+2−4
pkgs/applications/audio/gigedit/default.nix+15−15
@@ -1,25 +1,25 @@
1−{ stdenv, fetchsvn, autoconf, automake, docbook_xml_dtd_45
2−, docbook_xsl, gtkmm2, intltool, libgig, libsndfile, libtool, libxslt
3−, pkgconfig }:
1+{ stdenv, fetchurl, autoconf, automake, intltool, libtool, pkgconfig, which
2+, docbook_xml_dtd_45, docbook_xsl, gtkmm2, libgig, libsndfile, libxslt
3+}:
44
55stdenv.mkDerivation rec {
6− name = "gigedit-svn-${version}";
7− version = "2342";
6+ name = "gigedit-${version}";
7+ version = "1.1.0";
88
9− src = fetchsvn {
10− url = "https://svn.linuxsampler.org/svn/gigedit/trunk";
11− rev = "${version}";
12− sha256 = "0wi94gymj0ns5ck9lq1d970gb4gnzrq4b57j5j7k3d6185yg2gjs";
9+ src = fetchurl {
10+ url = "http://download.linuxsampler.org/packages/${name}.tar.bz2";
11+ sha256 = "087pc919q28r1vw31c7w4m14bqnp4md1i2wbmk8w0vmwv2cbx2ni";
1312 };
1413
15− patchPhase = "sed -e 's/which/type -P/g' -i Makefile.cvs";
14+ patches = [ ./gigedit-1.1.0-pangomm-2.40.1.patch ];
1615
17− preConfigure = "make -f Makefile.cvs";
16+ preConfigure = "make -f Makefile.svn";
1817
19− buildInputs = [
20− autoconf automake docbook_xml_dtd_45 docbook_xsl gtkmm2 intltool
21− libgig libsndfile libtool libxslt pkgconfig
22− ];
18+ nativeBuildInputs = [ autoconf automake intltool libtool pkgconfig which ];
19+
20+ buildInputs = [ docbook_xml_dtd_45 docbook_xsl gtkmm2 libgig libsndfile libxslt ];
21+
22+ enableParallelBuilding = true;
2323
2424 meta = with stdenv.lib; {
2525 homepage = http://www.linuxsampler.org;
pkgs/applications/audio/gigedit/gigedit-1.1.0-pangomm-2.40.1.patchnew file+15
@@ -0,0 +1,15 @@
1+--- a/src/gigedit/wrapLabel.cc
2++++ b/src/gigedit/wrapLabel.cc
3+@@ -64,12 +64,7 @@ WrapLabel::WrapLabel(const Glib::ustring &text) // IN: The label text
4+ : mWrapWidth(0),
5+ mWrapHeight(0)
6+ {
7+- // pangomm >= 2.35.1
8+-#if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && (PANGOMM_MINOR_VERSION > 35 || (PANGOMM_MINOR_VERSION == 35 && PANGOMM_MICRO_VERSION >= 1)))
9+- get_layout()->set_wrap(Pango::WrapMode::WORD_CHAR);
10+-#else
11+ get_layout()->set_wrap(Pango::WRAP_WORD_CHAR);
12+-#endif
13+ set_alignment(0.0, 0.0);
14+ set_text(text);
15+ }
pkgs/applications/audio/linuxsampler/default.nix+14−17
@@ -1,31 +1,28 @@
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 }:
33
44stdenv.mkDerivation rec {
5− name = "linuxsampler-svn-${version}";
6− version = "2340";
5+ name = "linuxsampler-${version}";
6+ version = "2.1.0";
77
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";
1211 };
1312
14− patches = ./linuxsampler_lv2_sfz_fix.diff;
15−
1613 # It fails to compile without this option. I'm not sure what the bug
1714 # is, but everything works OK for me (goibhniu).
1815 configureFlags = [ "--disable-nptl-bug-check" ];
1916
2017 preConfigure = ''
21− sed -e 's/which/type -P/g' -i scripts/generate_parser.sh
22− make -f Makefile.cvs
18+ make -f Makefile.svn
2319 '';
2420
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;
2926
3027 meta = with stdenv.lib; {
3128 homepage = http://www.linuxsampler.org;
@@ -40,7 +37,7 @@ stdenv.mkDerivation rec {
4037 prior written permission by the LinuxSampler authors. If you
4138 have questions on the subject, that are not yet covered by the
4239 FAQ, please contact us.
43− '';
40+ '';
4441 license = licenses.unfree;
4542 maintainers = [ maintainers.goibhniu ];
4643 platforms = platforms.linux;
pkgs/applications/audio/linuxsampler/linuxsampler_lv2_sfz_fix.diffdeleted−50
@@ -1,50 +0,0 @@
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− }
pkgs/applications/audio/qsampler/default.nix+11−10
@@ -1,21 +1,22 @@
1−{ stdenv, fetchsvn, autoconf, automake, liblscp, libtool, pkgconfig
2−, qt4 }:
1+{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, qttools
2+, liblscp, libgig, qtbase }:
33
44stdenv.mkDerivation rec {
5− name = "qsampler-svn-${version}";
6− version = "2342";
5+ name = "qsampler-${version}";
6+ version = "0.4.3";
77
8− src = fetchsvn {
9− url = "https://svn.linuxsampler.org/svn/qsampler/trunk";
10− rev = "${version}";
11− sha256 = "17w3vgpgfmvl11wsd5ndk9zdggl3gbzv3wbd45dyf2al4i0miqnx";
8+ src = fetchurl {
9+ url = "mirror://sourceforge/qsampler/${name}.tar.gz";
10+ sha256 = "1wg19022gyzy8rk9npfav9kz9z2qicqwwb2x5jz5hshzf3npx1fi";
1211 };
1312
14− nativeBuildInputs = [ pkgconfig ];
15− buildInputs = [ autoconf automake liblscp libtool qt4 ];
13+ nativeBuildInputs = [ autoconf automake libtool pkgconfig qttools ];
14+ buildInputs = [ liblscp libgig qtbase ];
1615
1716 preConfigure = "make -f Makefile.svn";
1817
18+ enableParallelBuilding = true;
19+
1920 meta = with stdenv.lib; {
2021 homepage = http://www.linuxsampler.org;
2122 description = "Graphical frontend to LinuxSampler";
pkgs/development/libraries/libgig/default.nix+12−10
@@ -1,19 +1,21 @@
1−{ stdenv, fetchsvn, autoconf, automake, libsndfile, libtool, pkgconfig, libuuid }:
1+{ stdenv, fetchurl, autoconf, automake, libsndfile, libtool, pkgconfig, libuuid }:
22
33stdenv.mkDerivation rec {
4− name = "libgig-svn-${version}";
5− version = "2334";
4+ name = "libgig-${version}";
5+ version = "4.1.0";
66
7− src = fetchsvn {
8− url = "https://svn.linuxsampler.org/svn/libgig/trunk";
9− rev = "${version}";
10− sha256 = "0i7sj3zm6banl5avjdxblx0mlbxxzbsbr4x5hsl2fhrdsv5dnxhc";
7+ src = fetchurl {
8+ url = "http://download.linuxsampler.org/packages/${name}.tar.bz2";
9+ sha256 = "02xx6bqxzgkvrawwnzrnxx1ypk244q4kpwfd58266f9ji8kq18h6";
1110 };
1211
13− nativeBuildInputs = [ pkgconfig ];
14− buildInputs = [ autoconf automake libsndfile libtool libuuid ];
12+ nativeBuildInputs = [ autoconf automake libtool pkgconfig ];
1513
16− preConfigure = "make -f Makefile.cvs";
14+ buildInputs = [ libsndfile libuuid ];
15+
16+ preConfigure = "make -f Makefile.svn";
17+
18+ enableParallelBuilding = true;
1719
1820 meta = with stdenv.lib; {
1921 homepage = http://www.linuxsampler.org;
pkgs/development/libraries/liblscp/default.nix+10−10
@@ -1,19 +1,19 @@
1−{ stdenv, fetchsvn, autoconf, automake, libtool, pkgconfig }:
1+{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig }:
22
33stdenv.mkDerivation rec {
4− name = "liblscp-svn-${version}";
5− version = "2319";
4+ name = "liblscp-${version}";
5+ version = "0.5.8";
66
7− src = fetchsvn {
8− url = "https://svn.linuxsampler.org/svn/liblscp/trunk";
9− rev = "${version}";
10− sha256 = "0jgdy9gi9n8x2pqrbll9158vhx8293lnxv8vzl0szcincslgk7hi";
7+ src = fetchurl {
8+ url = "http://download.linuxsampler.org/packages/${name}.tar.gz";
9+ sha256 = "00cfafkw1n80sdjwm9zdsg5vx287wqpgpbajd3zmiz415wzr84dn";
1110 };
1211
13− nativeBuildInputs = [ pkgconfig ];
14− buildInputs = [ autoconf automake libtool ];
12+ nativeBuildInputs = [ autoconf automake libtool pkgconfig ];
1513
16− preConfigure = "make -f Makefile.svn";
14+ preConfigure = "make -f Makefile.git";
15+
16+ enableParallelBuilding = true;
1717
1818 meta = with stdenv.lib; {
1919 homepage = http://www.linuxsampler.org;
pkgs/top-level/all-packages.nix+2−4
@@ -15638,9 +15638,7 @@ with pkgs;
1563815638 polarssl = mbedtls_1_3;
1563915639 };
1564015640
15641− linuxsampler = callPackage ../applications/audio/linuxsampler {
15642− bison = bison2;
15643− };
15641+ linuxsampler = callPackage ../applications/audio/linuxsampler { };
1564415642
1564515643 llpp = ocaml-ng.ocamlPackages.callPackage ../applications/misc/llpp { };
1564615644
@@ -16393,7 +16391,7 @@ with pkgs;
1639316391
1639416392 qrcode = callPackage ../tools/graphics/qrcode {};
1639516393
16396− qsampler = callPackage ../applications/audio/qsampler { };
16394+ qsampler = libsForQt5.callPackage ../applications/audio/qsampler { };
1639716395
1639816396 qscreenshot = callPackage ../applications/graphics/qscreenshot {
1639916397 qt = qt4;