about summary refs log tree commit diff
path: root/pkgs/applications/audio/lmms/default.nix
blob: dd0649811bbbc9bd21aa5ae57cec8fd77934dd26 (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
{ stdenv, fetchurl, SDL, alsaLib, cmake, fftwSinglePrec, jack2, libogg
, libsamplerate, libsndfile, pkgconfig, pulseaudio, qt4, freetype
}:

stdenv.mkDerivation  rec {
  name = "lmms-${version}";
  version = "0.4.15";

  src = fetchurl {
    url = "mirror://sourceforge/lmms/${name}.tar.bz2";
    sha256 = "02q2gbsqwk3hf9kvzz58a5bxmlb4cfr2mzy41wdvbxxdm2pcl101";
  };

  buildInputs = [
    SDL alsaLib cmake fftwSinglePrec jack2 libogg libsamplerate
    libsndfile pkgconfig pulseaudio qt4
  ];

  # work around broken build system of 0.4.*
  NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2";

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Linux MultiMedia Studio";
    homepage = "http://lmms.sourceforge.net";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.goibhniu ];
  };
}