2016-01-23 15:46:44 +01:00
|
|
|
{ stdenv, fetchurl, chromaprint, fftw, flac, libid3tag, libmad
|
|
|
|
, libopus, libshout, libsndfile, libusb1, libvorbis, pkgconfig
|
|
|
|
, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite
|
|
|
|
, taglib, vampSDK
|
2013-10-28 03:16:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mixxx-${version}";
|
2016-01-23 14:50:56 +01:00
|
|
|
version = "2.0.0";
|
2013-10-28 03:16:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.mixxx.org/${name}/${name}-src.tar.gz";
|
2016-01-23 14:50:56 +01:00
|
|
|
sha256 = "0vb71w1yq0xwwsclrn2jj9bk8w4n14rfv5c0aw46c11mp8xz7f71";
|
2013-10-28 03:16:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-01-23 15:46:44 +01:00
|
|
|
chromaprint fftw flac libid3tag libmad libopus libshout libsndfile
|
|
|
|
libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4
|
|
|
|
rubberband scons sqlite taglib vampSDK
|
2013-10-28 03:16:32 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
|
|
|
"qtdir=${qt4}"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p "$out"
|
2013-10-28 03:16:32 +01:00
|
|
|
scons \
|
|
|
|
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
|
|
|
|
$sconsFlags "prefix=$out"
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
scons $sconsFlags "prefix=$out" install
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2016-01-23 15:46:44 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://mixxx.org;
|
2013-10-28 03:16:32 +01:00
|
|
|
description = "Digital DJ mixing software";
|
2016-01-23 15:46:44 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
2013-10-28 03:16:32 +01:00
|
|
|
};
|
|
|
|
}
|