1{
2 lib,
3 stdenv,
4 fetchurl,
5 autoconf,
6 automake,
7 bison,
8 libtool,
9 pkg-config,
10 which,
11 alsa-lib,
12 asio,
13 libjack2,
14 libgig,
15 libsndfile,
16 lv2,
17}:
18
19stdenv.mkDerivation (finalAttrs: {
20 pname = "linuxsampler";
21 version = "2.3.1";
22
23 src = fetchurl {
24 url = "https://download.linuxsampler.org/packages/linuxsampler-${finalAttrs.version}.tar.bz2";
25 hash = "sha256-T7quk5N5JBiPqIziQd0vaCr8tLDbwS6otz6egY01OTE=";
26 };
27
28 env.HAVE_UNIX98 = "1";
29
30 preConfigure = ''
31 make -f Makefile.svn
32 '';
33
34 nativeBuildInputs = [
35 autoconf
36 automake
37 bison
38 libtool
39 pkg-config
40 which
41 ];
42
43 buildInputs = [
44 alsa-lib
45 asio
46 libjack2
47 libgig
48 libsndfile
49 lv2
50 ];
51
52 enableParallelBuilding = true;
53
54 meta = {
55 homepage = "http://www.linuxsampler.org";
56 description = "Sampler backend";
57 longDescription = ''
58 Includes sampler engine, audio and MIDI drivers, network layer
59 (LSCP) API and native C++ API.
60
61 LinuxSampler is licensed under the GNU GPL with the exception
62 that USAGE of the source code, libraries and applications FOR
63 COMMERCIAL HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED without
64 prior written permission by the LinuxSampler authors. If you
65 have questions on the subject, that are not yet covered by the
66 FAQ, please contact us.
67 '';
68 license = lib.licenses.unfree;
69 maintainers = [ ];
70 platforms = lib.platforms.linux;
71 };
72})