2020-03-15 04:52:33 +03:00
|
|
|
{ stdenv, mkDerivation, fetchurl, fetchFromGitHub, chromaprint
|
2018-08-31 15:38:54 +03:00
|
|
|
, fftw, flac, faad2, glibcLocales, mp4v2
|
2018-01-08 01:52:26 +03:00
|
|
|
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
2019-04-07 14:54:13 +03:00
|
|
|
, libGLU, libxcb, lilv, lv2, opusfile
|
|
|
|
, pkgconfig, portaudio, portmidi, protobuf, qtbase, qtscript, qtsvg
|
2020-03-26 23:29:35 +03:00
|
|
|
, qtx11extras, rubberband, scons, sqlite, taglib, upower, vamp-plugin-sdk
|
2013-10-28 06:16:32 +04:00
|
|
|
}:
|
|
|
|
|
2020-03-15 04:52:33 +03:00
|
|
|
let
|
|
|
|
# Because libshout 2.4.2 and newer seem to break streaming in mixxx, build it
|
|
|
|
# with 2.4.1 instead.
|
|
|
|
libshout241 = libshout.overrideAttrs (o: rec {
|
|
|
|
name = "libshout-2.4.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.xiph.org/releases/libshout/${name}.tar.gz";
|
|
|
|
sha256 = "0kgjpf8jkgyclw11nilxi8vyjk4s8878x23qyxnvybbgqbgbib7k";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
2019-08-05 00:11:09 +03:00
|
|
|
mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "mixxx";
|
2019-12-24 04:26:15 +03:00
|
|
|
version = "2.2.3";
|
2013-10-28 06:16:32 +04:00
|
|
|
|
2018-08-26 14:13:18 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "mixxx";
|
|
|
|
rev = "release-${version}";
|
2019-12-24 04:26:15 +03:00
|
|
|
sha256 = "1h7q25fv62c5m74d4cn1m6mpanmqpbl2wqbch4qvn488jb2jw1dv";
|
2013-10-28 06:16:32 +04:00
|
|
|
};
|
|
|
|
|
2020-03-27 16:47:48 +03:00
|
|
|
nativeBuildInputs = [ scons.py2 ];
|
2013-10-28 06:16:32 +04:00
|
|
|
buildInputs = [
|
2020-03-15 04:52:33 +03:00
|
|
|
chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout241 libsndfile
|
2019-04-07 14:54:13 +03:00
|
|
|
libusb1 libvorbis libxcb libGLU lilv lv2 opusfile pkgconfig portaudio portmidi protobuf qtbase qtscript qtsvg
|
2020-03-28 23:15:15 +03:00
|
|
|
qtx11extras rubberband sqlite taglib upower vamp-plugin-sdk
|
2013-10-28 06:16:32 +04:00
|
|
|
];
|
|
|
|
|
2019-05-01 19:55:18 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-10-28 06:16:32 +04:00
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
2019-04-07 14:54:13 +03:00
|
|
|
"qtdir=${qtbase}"
|
2018-01-08 01:52:26 +03:00
|
|
|
"faad=1"
|
2018-10-19 11:43:04 +03:00
|
|
|
"opus=1"
|
2013-10-28 06:16:32 +04:00
|
|
|
];
|
|
|
|
|
2019-08-07 19:52:43 +03:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
|
|
|
|
];
|
2018-11-12 05:52:07 +03:00
|
|
|
|
2016-01-23 17:46:44 +03:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://mixxx.org";
|
2013-10-28 06:16:32 +04:00
|
|
|
description = "Digital DJ mixing software";
|
2016-01-23 17:46:44 +03:00
|
|
|
license = licenses.gpl2Plus;
|
2018-08-26 14:13:18 +03:00
|
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
|
2016-01-23 17:46:44 +03:00
|
|
|
platforms = platforms.linux;
|
2013-10-28 06:16:32 +04:00
|
|
|
};
|
|
|
|
}
|