2018-08-31 13:38:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, chromaprint, fetchpatch
|
|
|
|
, fftw, flac, faad2, glibcLocales, mp4v2
|
2018-01-07 22:52:26 +00:00
|
|
|
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
2018-10-19 09:43:04 +01:00
|
|
|
, opusfile
|
2018-01-07 22:52:26 +00:00
|
|
|
, pkgconfig, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite
|
2018-08-26 12:13:18 +01:00
|
|
|
, taglib, upower, vampSDK
|
2013-10-28 02:16:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mixxx-${version}";
|
2018-09-24 16:23:58 +01:00
|
|
|
version = "2.1.4";
|
2013-10-28 02:16:32 +00:00
|
|
|
|
2018-08-26 12:13:18 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "mixxx";
|
|
|
|
rev = "release-${version}";
|
2018-09-24 16:23:58 +01:00
|
|
|
sha256 = "1q1px4033marraprvgr5yq9jlz943kcc10fdkn7py2ma8cfgnipq";
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
|
2018-08-31 13:38:54 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2013-10-28 02:16:32 +00:00
|
|
|
buildInputs = [
|
2018-08-31 13:38:54 +01:00
|
|
|
chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout libsndfile
|
2018-10-19 09:43:04 +01:00
|
|
|
libusb1 libvorbis opusfile pkgconfig portaudio portmidi protobuf qt4
|
2018-08-26 12:13:18 +01:00
|
|
|
rubberband scons sqlite taglib upower vampSDK
|
2013-10-28 02:16:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
|
|
|
"qtdir=${qt4}"
|
2018-01-07 22:52:26 +00:00
|
|
|
"faad=1"
|
2018-10-19 09:43:04 +01:00
|
|
|
"opus=1"
|
2013-10-28 02:16:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-08-31 13:38:54 +01:00
|
|
|
fixupPhase = ''
|
|
|
|
wrapProgram $out/bin/mixxx \
|
|
|
|
--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive;
|
|
|
|
'';
|
|
|
|
|
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;
|
2018-08-26 12:13:18 +01:00
|
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
|
2016-01-23 14:46:44 +00:00
|
|
|
platforms = platforms.linux;
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
}
|