@@ -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;