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
|
|
|
|
, 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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "mixxx";
|
2021-07-03 03:11:41 +00:00
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-VdgCsd/7vMFUleOU0ESoZDQ8yhQSsLZADVi4XI76Ouw=";
|
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
|
2023-05-24 13:37:59 +00:00
|
|
|
# see https://github.com/mixxxdj/mixxx/blob/2.3.5/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;
|
|
|
|
};
|
|
|
|
}
|