2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
2021-07-24 12:14:16 +00:00
|
|
|
, stdenv
|
2021-07-03 03:11:41 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, fetchFromGitHub
|
|
|
|
, chromaprint
|
|
|
|
, cmake
|
|
|
|
, faad2
|
|
|
|
, ffmpeg
|
|
|
|
, fftw
|
|
|
|
, flac
|
|
|
|
, glibcLocales
|
|
|
|
, hidapi
|
|
|
|
, lame
|
|
|
|
, libebur128
|
|
|
|
, libGLU
|
|
|
|
, libid3tag
|
|
|
|
, libkeyfinder
|
|
|
|
, libmad
|
|
|
|
, libmodplug
|
|
|
|
, libopus
|
|
|
|
, libsecret
|
|
|
|
, libshout
|
|
|
|
, libsndfile
|
|
|
|
, libusb1
|
|
|
|
, libvorbis
|
|
|
|
, libxcb
|
|
|
|
, lilv
|
|
|
|
, lv2
|
|
|
|
, mp4v2
|
|
|
|
, opusfile
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
|
|
|
, portmidi
|
|
|
|
, protobuf
|
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
|
|
|
, qtscript
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, rubberband
|
|
|
|
, serd
|
|
|
|
, sord
|
|
|
|
, soundtouch
|
|
|
|
, sratom
|
|
|
|
, sqlite
|
|
|
|
, taglib
|
|
|
|
, upower
|
|
|
|
, vamp-plugin-sdk
|
|
|
|
, wavpack
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mixxx";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "mixxx";
|
2021-07-03 03:11:41 +00:00
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-6M1qaRyRYWTIKqclewuD+RUVDdxVbBHcfpw2qYgO6BA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-07-03 03:11:41 +00:00
|
|
|
chromaprint
|
|
|
|
faad2
|
|
|
|
ffmpeg
|
|
|
|
fftw
|
|
|
|
flac
|
|
|
|
glibcLocales
|
|
|
|
hidapi
|
|
|
|
lame
|
|
|
|
libebur128
|
|
|
|
libGLU
|
|
|
|
libid3tag
|
|
|
|
libkeyfinder
|
|
|
|
libmad
|
|
|
|
libmodplug
|
|
|
|
libopus
|
|
|
|
libsecret
|
|
|
|
libshout
|
|
|
|
libsndfile
|
|
|
|
libusb1
|
|
|
|
libvorbis
|
|
|
|
libxcb
|
|
|
|
lilv
|
|
|
|
lv2
|
|
|
|
mp4v2
|
|
|
|
opusfile
|
|
|
|
pcre
|
|
|
|
portaudio
|
|
|
|
portmidi
|
|
|
|
protobuf
|
|
|
|
qtbase
|
|
|
|
qtkeychain
|
|
|
|
qtscript
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
rubberband
|
|
|
|
serd
|
|
|
|
sord
|
|
|
|
soundtouch
|
|
|
|
sratom
|
|
|
|
sqlite
|
|
|
|
taglib
|
|
|
|
upower
|
|
|
|
vamp-plugin-sdk
|
|
|
|
wavpack
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
|
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
# mixxx installs udev rules to DATADIR instead of SYSCONFDIR
|
|
|
|
# let's disable this and install udev rules manually via postInstall
|
2021-12-06 16:07:01 +00:00
|
|
|
# see https://github.com/mixxxdj/mixxx/blob/2.3.1/CMakeLists.txt#L1381-L1392
|
2021-07-24 12:14:16 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_USER_UDEV_RULES=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = lib.optionalString stdenv.isLinux ''
|
|
|
|
rules="$src/res/linux/mixxx-usb-uaccess.rules"
|
|
|
|
if [ ! -f "$rules" ]; then
|
|
|
|
echo "$rules is missing, must update the Nix file."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
mkdir -p "$out/lib/udev/rules.d"
|
|
|
|
cp "$rules" "$out/lib/udev/rules.d/69-mixxx-usb-uaccess.rules"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mixxx.org";
|
|
|
|
description = "Digital DJ mixing software";
|
|
|
|
license = licenses.gpl2Plus;
|
2021-07-03 03:11:41 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu bfortz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|