2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchurl, fetchFromGitHub, chromaprint
|
2018-08-31 13:38:54 +01:00
|
|
|
, fftw, flac, faad2, glibcLocales, mp4v2
|
2018-01-07 22:52:26 +00:00
|
|
|
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
2019-04-07 12:54:13 +01:00
|
|
|
, libGLU, libxcb, lilv, lv2, opusfile
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, portaudio, portmidi, protobuf, qtbase, qtscript, qtsvg
|
2020-07-18 00:30:28 +01:00
|
|
|
, qtx11extras, rubberband, sconsPackages, sqlite, taglib, upower, vamp-plugin-sdk
|
2013-10-28 02:16:32 +00:00
|
|
|
}:
|
|
|
|
|
2020-03-15 01:52:33 +00: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-04 22:11:09 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mixxx";
|
2020-07-06 13:47:18 +01:00
|
|
|
version = "2.2.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}";
|
2020-07-06 13:47:18 +01:00
|
|
|
sha256 = "1dj9li8av9b2kbm76jvvbdmihy1pyrw0s4xd7dd524wfhwr1llxr";
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 00:30:28 +01:00
|
|
|
nativeBuildInputs = [ sconsPackages.scons_3_1_2 ];
|
2013-10-28 02:16:32 +00:00
|
|
|
buildInputs = [
|
2020-03-15 01:52:33 +00:00
|
|
|
chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout241 libsndfile
|
2021-01-19 06:50:56 +00:00
|
|
|
libusb1 libvorbis libxcb libGLU lilv lv2 opusfile pkg-config portaudio portmidi protobuf qtbase qtscript qtsvg
|
2020-03-28 20:15:15 +00:00
|
|
|
qtx11extras rubberband sqlite taglib upower vamp-plugin-sdk
|
2013-10-28 02:16:32 +00:00
|
|
|
];
|
|
|
|
|
2019-05-01 17:55:18 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-10-28 02:16:32 +00:00
|
|
|
sconsFlags = [
|
|
|
|
"build=release"
|
2019-04-07 12:54:13 +01:00
|
|
|
"qtdir=${qtbase}"
|
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
|
|
|
];
|
|
|
|
|
2019-08-07 17:52:43 +01:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
|
|
|
|
];
|
2018-11-12 02:52:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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;
|
2020-07-28 01:03:11 +01:00
|
|
|
maintainers = [ maintainers.goibhniu maintainers.bfortz ];
|
2016-01-23 14:46:44 +00:00
|
|
|
platforms = platforms.linux;
|
2013-10-28 02:16:32 +00:00
|
|
|
};
|
|
|
|
}
|