2017-08-30 16:56:21 +01:00
|
|
|
{ stdenv, fetchurl, chromaprint, fetchpatch, fftw, flac, libid3tag, libmad
|
2016-01-23 14:46:44 +00:00
|
|
|
, libopus, libshout, libsndfile, libusb1, libvorbis, pkgconfig
|
|
|
|
, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite
|
|
|
|
, taglib, vampSDK
|
2013-10-28 02:16:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mixxx-${version}";
|
2016-01-23 13:50:56 +00:00
|
|
|
version = "2.0.0";
|
2013-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.mixxx.org/${name}/${name}-src.tar.gz";
|
2016-01-23 13:50:56 +00:00
|
|
|
sha256 = "0vb71w1yq0xwwsclrn2jj9bk8w4n14rfv5c0aw46c11mp8xz7f71";
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
|
2017-08-30 16:56:21 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/m/mixxx/2.0.0~dfsg-7.1/debian/patches/0007-fix_gcc6_issue.patch";
|
|
|
|
sha256 = "0kpyv10wcjcvbijk6vpq54gx9sqzrq4kq2qilc1czmisp9qdy5sd";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://622776.bugs.gentoo.org/attachment.cgi?id=487284";
|
|
|
|
name = "sqlite.patch";
|
|
|
|
sha256 = "1qqbd8nrxrjcc1dwvyqfq1k2yz3l071sfcgd2dmpk6j8d4j5kx31";
|
|
|
|
})
|
|
|
|
];
|
2017-08-12 22:56:21 +01:00
|
|
|
|
2013-10-28 02:16:32 +00:00
|
|
|
buildInputs = [
|
2016-01-23 14:46:44 +00:00
|
|
|
chromaprint fftw flac libid3tag libmad libopus libshout libsndfile
|
|
|
|
libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4
|
|
|
|
rubberband scons sqlite taglib vampSDK
|
2013-10-28 02:16:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
|
|
|
"qtdir=${qt4}"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p "$out"
|
2013-10-28 02:16:32 +00: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 14:46:44 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-03 20:28:31 +01:00
|
|
|
homepage = https://mixxx.org;
|
2013-10-28 02:16:32 +00:00
|
|
|
description = "Digital DJ mixing software";
|
2016-01-23 14:46:44 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
}
|