mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2
|
|
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
|
, pkgconfig, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite
|
|
, taglib, upower, vampSDK
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mixxx-${version}";
|
|
version = "2.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mixxxdj";
|
|
repo = "mixxx";
|
|
rev = "release-${version}";
|
|
sha256 = "1fm8lkbnxka4haidf6yr8mb3r6vaxmc97hhrp8pcx0fvq2mnzvy2";
|
|
};
|
|
|
|
buildInputs = [
|
|
chromaprint fftw flac faad2 mp4v2 libid3tag libmad libopus libshout libsndfile
|
|
libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4
|
|
rubberband scons sqlite taglib upower vampSDK
|
|
];
|
|
|
|
sconsFlags = [
|
|
"build=release"
|
|
"qtdir=${qt4}"
|
|
"faad=1"
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
mkdir -p "$out"
|
|
scons \
|
|
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
|
|
$sconsFlags "prefix=$out"
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
scons $sconsFlags "prefix=$out" install
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://mixxx.org;
|
|
description = "Digital DJ mixing software";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|