3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/mixxx/default.nix

59 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, 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
, pkgconfig, portaudio, portmidi, protobuf, qtbase, qtscript, qtsvg
, qtx11extras, rubberband, scons, sqlite, taglib, upower, vamp-plugin-sdk
}:
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 {
pname = "mixxx";
2019-12-24 01:26:15 +00:00
version = "2.2.3";
2018-08-26 12:13:18 +01:00
src = fetchFromGitHub {
owner = "mixxxdj";
repo = "mixxx";
rev = "release-${version}";
2019-12-24 01:26:15 +00:00
sha256 = "1h7q25fv62c5m74d4cn1m6mpanmqpbl2wqbch4qvn488jb2jw1dv";
};
nativeBuildInputs = [ scons.py2 ];
buildInputs = [
chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout241 libsndfile
2019-04-07 12:54:13 +01:00
libusb1 libvorbis libxcb libGLU lilv lv2 opusfile pkgconfig portaudio portmidi protobuf qtbase qtscript qtsvg
2020-03-28 20:15:15 +00:00
qtx11extras rubberband sqlite taglib upower vamp-plugin-sdk
];
enableParallelBuilding = true;
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"
];
qtWrapperArgs = [
"--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
];
meta = with stdenv.lib; {
homepage = "https://mixxx.org";
description = "Digital DJ mixing software";
license = licenses.gpl2Plus;
2018-08-26 12:13:18 +01:00
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
platforms = platforms.linux;
};
}