summary refs log tree commit diff
path: root/pkgs/applications/audio/linuxsampler/default.nix
blob: 2c4b26543ebb354a26ba004cf86519aae9c57b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ stdenv, fetchsvn, alsaLib, asio, autoconf, automake, bison
, jack2, libgig, libsndfile, libtool, lv2, pkgconfig }:

stdenv.mkDerivation rec {
  name = "linuxsampler-svn-${version}";
  version = "2340";

  src = fetchsvn {
    url = "https://svn.linuxsampler.org/svn/linuxsampler/trunk";
    rev = "${version}";
    sha256 = "0zsrvs9dwwhjx733m45vfi11yjkqv33z8qxn2i9qriq5zs1f0kd7";
  };

  patches = ./linuxsampler_lv2_sfz_fix.diff;

  # It fails to compile without this option. I'm not sure what the bug
  # is, but everything works OK for me (goibhniu).
  configureFlags = [ "--disable-nptl-bug-check" ];

  preConfigure = ''
    sed -e 's/which/type -P/g' -i scripts/generate_parser.sh
    make -f Makefile.cvs
  '';

  buildInputs = [ 
   alsaLib asio autoconf automake bison jack2 libgig libsndfile
   libtool lv2 pkgconfig
  ];

  meta = with stdenv.lib; {
    homepage = http://www.linuxsampler.org;
    description = "Sampler backend";
    longDescription = ''
      Includes sampler engine, audio and MIDI drivers, network layer
      (LSCP) API and native C++ API.

      LinuxSampler is licensed under the GNU GPL with the exception
      that USAGE of the source code, libraries and applications FOR
      COMMERCIAL HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED without
      prior written permission by the LinuxSampler authors. If you
      have questions on the subject, that are not yet covered by the
      FAQ, please contact us.
    ''; 
    license = licenses.unfree;
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.linux;
  };
}