summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2016-12-18 15:55:57 -0600
committerThomas Tuegel <ttuegel@gmail.com>2016-12-18 15:56:24 -0600
commitc2e2a8120ff98c98c6e9f38b6fae380e69f5a27f (patch)
tree018341efafe780be71c250b1a36bdc707e939656 /pkgs
parent40990841f34bf29ee19b8208ade2d44cd5cf485a (diff)
downloadnixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar.gz
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar.bz2
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar.lz
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar.xz
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.tar.zst
nixlib-c2e2a8120ff98c98c6e9f38b6fae380e69f5a27f.zip
audaciousQt5: init at 3.8.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/audio/audacious/qt-5.nix89
-rw-r--r--pkgs/top-level/all-packages.nix1
2 files changed, 90 insertions, 0 deletions
diff --git a/pkgs/applications/audio/audacious/qt-5.nix b/pkgs/applications/audio/audacious/qt-5.nix
new file mode 100644
index 000000000000..b86efe7eb97e
--- /dev/null
+++ b/pkgs/applications/audio/audacious/qt-5.nix
@@ -0,0 +1,89 @@
+{
+  stdenv, lib, fetchurl,
+  gettext, makeQtWrapper, pkgconfig,
+  qtbase,
+  alsaLib, curl, faad2, ffmpeg, flac, fluidsynth, gdk_pixbuf, lame, libbs2b,
+  libcddb, libcdio082, libcue, libjack2, libmad, libmcs, libmms, libmodplug,
+  libmowgli, libnotify, libogg, libpulseaudio, libsamplerate, libsidplayfp,
+  libsndfile, libvorbis, libxml2, lirc, mpg123, neon, qtmultimedia, soxr,
+  wavpack
+}:
+
+let
+  version = "3.8.1";
+  sources = {
+    "audacious-${version}" = fetchurl {
+      url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
+      sha256 = "1k9blmgqia0df18l39bd2bbcwmjfxak6bd286vcd9zzmjhqs4qdc";
+    };
+
+    "audacious-plugins-${version}" = fetchurl {
+      url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
+      sha256 = "0f16ivcp8nd83r781hnw1qgbs9hi2b2v22zwv7c3sw3jq1chb70h";
+    };
+  };
+in
+
+stdenv.mkDerivation {
+  inherit version;
+  name = "audacious-${version}";
+
+  sourceFiles = lib.attrValues sources;
+  sourceRoots = lib.attrNames sources;
+
+  nativeBuildInputs = [
+    gettext makeQtWrapper pkgconfig
+  ];
+
+  buildInputs = [
+    # Core dependencies
+    qtbase
+
+    # Plugin dependencies
+    alsaLib curl faad2 ffmpeg flac fluidsynth gdk_pixbuf lame libbs2b libcddb
+    libcdio082 libcue libjack2 libmad libmcs libmms libmodplug libmowgli
+    libnotify libogg libpulseaudio libsamplerate libsidplayfp libsndfile
+    libvorbis libxml2 lirc mpg123 neon qtmultimedia soxr wavpack
+  ];
+
+  configureFlags = [ "--enable-qt" "--disable-gtk" ];
+
+  # Here we build both audacious and audacious-plugins in one
+  # derivations, since they really expect to be in the same prefix.
+  # This is slighly tricky.
+  builder = builtins.toFile "builder.sh" ''
+    sourceFiles=( $sourceFiles )
+    sourceRoots=( $sourceRoots )
+    for (( i=0 ; i < ''${#sourceFiles[*]} ; i++ )); do
+
+      (
+        src=''${sourceFiles[$i]}
+        sourceRoot=''${sourceRoots[$i]}
+        source $stdenv/setup
+        genericBuild
+      )
+
+      if [ $i == 0 ]; then
+        nativeBuildInputs="$out $nativeBuildInputs"
+      fi
+
+    done
+
+    source $stdenv/setup
+    wrapQtProgram $out/bin/audacious
+    wrapQtProgram $out/bin/audtool
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "Audio player";
+    homepage = http://audacious-media-player.org/;
+    maintainers = with maintainers; [ ttuegel ];
+    platforms = with platforms; linux;
+    license = with licenses; [
+      bsd2 bsd3 #https://github.com/audacious-media-player/audacious/blob/master/COPYING
+      gpl2 gpl3 lgpl2Plus #http://redmine.audacious-media-player.org/issues/46
+    ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 210fdcde7f6e..77aafb98822a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12259,6 +12259,7 @@ in
   };
 
   audacious = callPackage ../applications/audio/audacious { };
+  audaciousQt5 = qt5.callPackage ../applications/audio/audacious/qt-5.nix { };
 
   audacity = callPackage ../applications/audio/audacity { };