about summary refs log tree commit diff
path: root/pkgs/applications/audio/audacious
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-04-16 19:26:15 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-04-16 19:26:15 +0000
commit10fdd4d2301d77396b7869aa8d3d814c7e8e8334 (patch)
tree6982811cfa84dfcb0f0c028c216afbe32c76de24 /pkgs/applications/audio/audacious
parent21d2c514e5a6b87941980684e1880b6100170c95 (diff)
downloadnixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar.gz
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar.bz2
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar.lz
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar.xz
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.tar.zst
nixlib-10fdd4d2301d77396b7869aa8d3d814c7e8e8334.zip
* Updated audacious to 2.3. Combined audacious and audacious-plugins
  into one derivation so that it works out of the box - no need to set
  symlinks to the plugins in ~/.local/share/audacious.  There is
  really no reason to install those packages separately anyway, as
  audacious is useless without the plugins package.

svn path=/nixpkgs/trunk/; revision=21137
Diffstat (limited to 'pkgs/applications/audio/audacious')
-rw-r--r--pkgs/applications/audio/audacious/default.nix54
-rw-r--r--pkgs/applications/audio/audacious/player.nix32
-rw-r--r--pkgs/applications/audio/audacious/plugins.nix33
3 files changed, 54 insertions, 65 deletions
diff --git a/pkgs/applications/audio/audacious/default.nix b/pkgs/applications/audio/audacious/default.nix
new file mode 100644
index 000000000000..48ee3ed1d8d6
--- /dev/null
+++ b/pkgs/applications/audio/audacious/default.nix
@@ -0,0 +1,54 @@
+{ stdenv, fetchurl, pkgconfig, glib, gtk, libmowgli, libmcs
+, gettext, dbus_glib, libxml2, libmad, xlibs, alsaLib, libogg
+, libvorbis, libcdio, libcddb, flac 
+}:
+
+stdenv.mkDerivation rec {
+  name = "audacious-2.3";
+  
+  src = fetchurl {
+    url = "http://distfiles.atheme.org/${name}.tgz";
+    sha256 = "0vs16y1vrlkzcbaw8imc36b9lncva69zkdkp38ikbidssiskm6xi";
+  };
+
+  pluginsSrc = fetchurl {
+    url = "http://distfiles.atheme.org/audacious-plugins-2.3.tgz";
+    sha256 = "0hdami52qpiyim3nz3qnml85wgjzpmx6g2wahfnsdvncmhm4v93x";
+  };
+  
+  # `--enable-amidiplug' is to prevent configure from looking in /proc/asound.
+  configureFlags = "--enable-amidiplug";
+  
+  buildInputs =
+    [ gettext pkgconfig glib gtk libmowgli libmcs libxml2 dbus_glib
+      libmad xlibs.libXcomposite libogg libvorbis flac alsaLib libcdio
+      libcddb
+    ];
+
+  # Here we build bouth 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"
+    ''
+      # First build audacious.
+      (
+        source $stdenv/setup
+        genericBuild
+      )
+
+      # Then build the plugins.
+      (
+        buildNativeInputs="$out $buildNativeInputs" # to find audacious
+        source $stdenv/setup
+        rm -rfv audacious-*
+        src=$pluginsSrc
+        genericBuild
+      )
+    '';
+
+  meta = {
+    description = "Audacious, a media player forked from the Beep Media Player, which was itself an XMMS fork";
+    homepage = http://audacious-media-player.org/;
+    maintainers = [ stdenv.lib.maintainers.eelco ];
+  };
+}
diff --git a/pkgs/applications/audio/audacious/player.nix b/pkgs/applications/audio/audacious/player.nix
deleted file mode 100644
index 836882a79c57..000000000000
--- a/pkgs/applications/audio/audacious/player.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{ stdenv, fetchurl, pkgconfig, glib, gtk, libmowgli
-, libglade, libmcs, gettext, xlibs, dbus_glib
-}:
-
-stdenv.mkDerivation {
-  name = "audacious-1.5.1";
-  
-  src = fetchurl {
-    url = http://distfiles.atheme.org/audacious-1.5.1.tbz2;
-    sha256 = "1s32pdgx85qkrq15wwmvdw7wbcbxcf3nrhqxi6y72aijqm6fjwnz";
-  };
-
-  buildInputs = [pkgconfig libglade libmcs gettext dbus_glib];
-
-  propagatedBuildInputs = [glib gtk libmowgli libmcs];
-
-  NIX_LDFLAGS = "-rpath ${xlibs.libX11}/lib";
-
-  # Otherwise we barf with "libgcc_s.so.1 must be installed for
-  # pthread_cancel to work" on exit, as it tries to find libgcc_s
-  # dynamically.
-  dontPatchELF = true;
-
-  preBuild = ''
-    ensureDir $out/lib
-  '';
-
-  meta = {
-    description = "Audacious, a media player forked from the Beep Media Player, which was itself an XMMS fork";
-    homepage = http://audacious-media-player.org/;
-  };
-}
diff --git a/pkgs/applications/audio/audacious/plugins.nix b/pkgs/applications/audio/audacious/plugins.nix
deleted file mode 100644
index 649b81055369..000000000000
--- a/pkgs/applications/audio/audacious/plugins.nix
+++ /dev/null
@@ -1,33 +0,0 @@
-{ stdenv, fetchurl, pkgconfig, audacious, dbus_glib, gettext
-, libmad, xlibs, alsaLib, taglib, libmpcdec, libogg, libvorbis
-, libcdio, libcddb, libxml2
-}:
-
-stdenv.mkDerivation {
-  name = "audacious-plugins-1.5.1";
-  
-  src = fetchurl {
-    url = http://distfiles.atheme.org/audacious-plugins-1.5.1.tbz2;
-    sha256 = "1ki5bd50g4vi4d0qzxynyrgaq2n4cwhbsxln9rwk8ppphvk9pawc";
-  };
-
-  buildInputs = [
-    pkgconfig audacious dbus_glib gettext libmad
-    xlibs.libXcomposite alsaLib taglib libmpcdec
-    libogg libvorbis libcdio libcddb libxml2
-  ];
-
-  preBuild = ''
-    makeFlagsArray=(pluginlibdir=$out/lib/audacious)
-  '';
-
-  NIX_LDFLAGS = "-L${audacious}/lib/audacious"; # needed because we override pluginlibdir
-
-  # `--enable-amidiplug' is to prevent configure from looking in /proc/asound.
-  configureFlags = "--enable-amidiplug";
-  
-  meta = {
-    description = "Plugins for the Audacious media player";
-    homepage = http://audacious-media-player.org/;
-  };
-}