summary refs log tree commit diff
path: root/pkgs/applications/audio/mixxx
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-10-28 03:16:32 +0100
committeraszlig <aszlig@redmoonstudios.org>2013-10-28 20:48:49 +0100
commit45e740b1192368fc0f2622fcaba3bdf4bf155af1 (patch)
tree2b2e55bed537e785de3e64805915c214f93e3973 /pkgs/applications/audio/mixxx
parent46b2bd427cce0fcc65f1c22449e6f7a759d1e99a (diff)
downloadnixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar.gz
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar.bz2
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar.lz
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar.xz
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.tar.zst
nixpkgs-45e740b1192368fc0f2622fcaba3bdf4bf155af1.zip
mixxx: New package in version 1.11.0.
Compiles fine on linux i686 and amd64. Adding myself as maintainer, even
though I'm not using the package by myself, but a friend is using it for
DJing from a NixOS live system I'm maintaining.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications/audio/mixxx')
-rw-r--r--pkgs/applications/audio/mixxx/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mixxx/default.nix b/pkgs/applications/audio/mixxx/default.nix
new file mode 100644
index 00000000000..b76eecc9e4a
--- /dev/null
+++ b/pkgs/applications/audio/mixxx/default.nix
@@ -0,0 +1,51 @@
+{ stdenv, fetchurl, scons, pkgconfig, qt4, portaudio, portmidi, libusb1
+, libmad, protobuf, libvorbis, taglib, libid3tag, flac, libsndfile, libshout
+, fftw, vampSDK
+}:
+
+stdenv.mkDerivation rec {
+  name = "mixxx-${version}";
+  version = "1.11.0";
+
+  src = fetchurl {
+    url = "http://downloads.mixxx.org/${name}/${name}-src.tar.gz";
+    sha256 = "0c833gf4169xvpfn7car9vzvwfwl9d3xwmbfsy36cv8ydifip5h0";
+  };
+
+  buildInputs = [
+    scons pkgconfig qt4 portaudio portmidi libusb1 libmad protobuf libvorbis
+    taglib libid3tag flac libsndfile libshout fftw vampSDK
+  ];
+
+  sconsFlags = [
+    "build=release"
+    "qtdir=${qt4}"
+  ];
+
+  postPatch = ''
+    sed -i -e 's/"which /"type -P /' build/depends.py
+  '';
+
+  buildPhase = ''
+    runHook preBuild
+    ensureDir "$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 = {
+    homepage = "http://mixxx.org/";
+    description = "Digital DJ mixing software";
+    license = stdenv.lib.licenses.gpl2Plus;
+    maintainers = [ stdenv.lib.maintainers.aszlig ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}