tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxsampler: svn-2340 -> 2.1.0
Orivej Desh
8 years ago
d87976c1
687175c9
+15
-70
3 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
linuxsampler
default.nix
linuxsampler_lv2_sfz_fix.diff
top-level
all-packages.nix
+14
-17
pkgs/applications/audio/linuxsampler/default.nix
···
1
1
-
{ stdenv, fetchsvn, alsaLib, asio, autoconf, automake, bison
2
2
-
, libjack2, libgig, libsndfile, libtool, lv2, pkgconfig }:
1
1
+
{ stdenv, fetchurl, autoconf, automake, bison, libtool, pkgconfig, which
2
2
+
, alsaLib, asio, libjack2, libgig, libsndfile, lv2 }:
3
3
4
4
stdenv.mkDerivation rec {
5
5
-
name = "linuxsampler-svn-${version}";
6
6
-
version = "2340";
5
5
+
name = "linuxsampler-${version}";
6
6
+
version = "2.1.0";
7
7
8
8
-
src = fetchsvn {
9
9
-
url = "https://svn.linuxsampler.org/svn/linuxsampler/trunk";
10
10
-
rev = "${version}";
11
11
-
sha256 = "0zsrvs9dwwhjx733m45vfi11yjkqv33z8qxn2i9qriq5zs1f0kd7";
8
8
+
src = fetchurl {
9
9
+
url = "http://download.linuxsampler.org/packages/${name}.tar.bz2";
10
10
+
sha256 = "0fdxpw7jjfi058l95131d6d8538h05z7n94l60i6mhp9xbplj2jf";
12
11
};
13
12
14
14
-
patches = ./linuxsampler_lv2_sfz_fix.diff;
15
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
21
-
sed -e 's/which/type -P/g' -i scripts/generate_parser.sh
22
22
-
make -f Makefile.cvs
18
18
+
make -f Makefile.svn
23
19
'';
24
20
25
25
-
buildInputs = [
26
26
-
alsaLib asio autoconf automake bison libjack2 libgig libsndfile
27
27
-
libtool lv2 pkgconfig
28
28
-
];
21
21
+
nativeBuildInputs = [ autoconf automake bison libtool pkgconfig which ];
22
22
+
23
23
+
buildInputs = [ alsaLib asio libjack2 libgig libsndfile lv2 ];
24
24
+
25
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
43
-
'';
40
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
1
-
Index: linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp
2
2
-
===================================================================
3
3
-
--- linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (revision 2359)
4
4
-
+++ linuxsampler-r2359/src/hostplugins/lv2/PluginLv2.cpp (working copy)
5
5
-
@@ -18,6 +18,8 @@
6
6
-
* MA 02110-1301 USA *
7
7
-
***************************************************************************/
8
8
-
9
9
-
+#define _BSD_SOURCE 1 /* for realpath() */
10
10
-
+
11
11
-
#include <algorithm>
12
12
-
#include <cassert>
13
13
-
#include <cstdio>
14
14
-
@@ -118,6 +120,23 @@
15
15
-
dmsg(2, ("linuxsampler: Deactivate\n"));
16
16
-
}
17
17
-
18
18
-
+ static String RealPath(const String& path)
19
19
-
+ {
20
20
-
+ String out = path;
21
21
-
+ char* cpath = NULL;
22
22
-
+#ifdef _WIN32
23
23
-
+ cpath = (char*)malloc(MAX_PATH);
24
24
-
+ GetFullPathName(path.c_str(), MAX_PATH, cpath, NULL);
25
25
-
+#else
26
26
-
+ cpath = realpath(path.c_str(), NULL);
27
27
-
+#endif
28
28
-
+ if (cpath) {
29
29
-
+ out = cpath;
30
30
-
+ free(cpath);
31
31
-
+ }
32
32
-
+ return out;
33
33
-
+ }
34
34
-
+
35
35
-
String PluginLv2::PathToState(const String& path) {
36
36
-
if (MapPath) {
37
37
-
char* cstr = MapPath->abstract_path(MapPath->handle, path.c_str());
38
38
-
@@ -131,9 +150,10 @@
39
39
-
String PluginLv2::PathFromState(const String& path) {
40
40
-
if (MapPath) {
41
41
-
char* cstr = MapPath->absolute_path(MapPath->handle, path.c_str());
42
42
-
- const String abstract_path(cstr);
43
43
-
+ // Resolve symbolic links so SFZ sample paths load correctly
44
44
-
+ const String absolute_path(RealPath(cstr));
45
45
-
free(cstr);
46
46
-
- return abstract_path;
47
47
-
+ return absolute_path;
48
48
-
}
49
49
-
return path;
50
50
-
}
+1
-3
pkgs/top-level/all-packages.nix
···
15636
15636
polarssl = mbedtls_1_3;
15637
15637
};
15638
15638
15639
15639
-
linuxsampler = callPackage ../applications/audio/linuxsampler {
15640
15640
-
bison = bison2;
15641
15641
-
};
15639
15639
+
linuxsampler = callPackage ../applications/audio/linuxsampler { };
15642
15640
15643
15641
llpp = ocaml-ng.ocamlPackages.callPackage ../applications/misc/llpp { };
15644
15642