2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, chromaprint
|
2018-08-31 14:38:54 +02:00
|
|
|
, fftw, flac, faad2, glibcLocales, mp4v2
|
2018-01-07 23:52:26 +01:00
|
|
|
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
2019-04-07 13:54:13 +02:00
|
|
|
, libGLU, libxcb, lilv, lv2, opusfile
|
|
|
|
, pkgconfig, portaudio, portmidi, protobuf, qtbase, qtscript, qtsvg
|
|
|
|
, qtx11extras, rubberband, scons, sqlite, taglib, upower, vampSDK
|
2013-10-28 03:16:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mixxx-${version}";
|
2019-05-01 18:55:18 +02:00
|
|
|
version = "2.2.1";
|
2013-10-28 03:16:32 +01:00
|
|
|
|
2018-08-26 13:13:18 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "mixxx";
|
|
|
|
rev = "release-${version}";
|
2019-05-01 18:55:18 +02:00
|
|
|
sha256 = "1q6c2wfpprsx7s7nz1w0mhm2yhikj54jxcv61kwylxx3n5k2na9r";
|
2013-10-28 03:16:32 +01:00
|
|
|
};
|
|
|
|
|
2018-08-31 14:38:54 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2013-10-28 03:16:32 +01:00
|
|
|
buildInputs = [
|
2018-08-31 14:38:54 +02:00
|
|
|
chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout libsndfile
|
2019-04-07 13:54:13 +02:00
|
|
|
libusb1 libvorbis libxcb libGLU lilv lv2 opusfile pkgconfig portaudio portmidi protobuf qtbase qtscript qtsvg
|
|
|
|
qtx11extras rubberband scons sqlite taglib upower vampSDK
|
2013-10-28 03:16:32 +01:00
|
|
|
];
|
|
|
|
|
2019-05-01 18:55:18 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-10-28 03:16:32 +01:00
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
2019-04-07 13:54:13 +02:00
|
|
|
"qtdir=${qtbase}"
|
2018-01-07 23:52:26 +01:00
|
|
|
"faad=1"
|
2018-10-19 10:43:04 +02:00
|
|
|
"opus=1"
|
2013-10-28 03:16:32 +01:00
|
|
|
];
|
|
|
|
|
2018-08-31 14:38:54 +02:00
|
|
|
fixupPhase = ''
|
|
|
|
wrapProgram $out/bin/mixxx \
|
|
|
|
--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive;
|
|
|
|
'';
|
2018-11-12 03:52:07 +01:00
|
|
|
|
2016-01-23 15:46:44 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-03 21:28:31 +02:00
|
|
|
homepage = https://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;
|
2018-08-26 13:13:18 +02:00
|
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
|
2016-01-23 15:46:44 +01:00
|
|
|
platforms = platforms.linux;
|
2013-10-28 03:16:32 +01:00
|
|
|
};
|
|
|
|
}
|