about summary refs log tree commit diff
path: root/pkgs/applications/audio/audacious
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-03-03 10:55:20 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-03-03 10:55:20 +0000
commitf30f36104b92f4e578157c003ea93f05409353e6 (patch)
treef70961efa9b6f47b6af47dccab2c2de34b463640 /pkgs/applications/audio/audacious
parent25f81f6438d973d57bedbab7db5295ae2ddb6ac4 (diff)
downloadnixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar.gz
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar.bz2
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar.lz
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar.xz
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.tar.zst
nixlib-f30f36104b92f4e578157c003ea93f05409353e6.zip
* Added Audacious, a fork of beep-media-player (which doesn't seem to
  work very well after the Glibc update), plus its dependencies.

  TODO: make an audacious-wrapper that lets Audacious find its plugins
  automatically.  Currently you have to install audacious-plugins and
  symlink ~/.nix-profile/lib/audacious/* in
  ~/.local/share/audacious/Plugins.

svn path=/nixpkgs/trunk/; revision=10927
Diffstat (limited to 'pkgs/applications/audio/audacious')
-rw-r--r--pkgs/applications/audio/audacious/player.nix32
-rw-r--r--pkgs/applications/audio/audacious/plugins.nix29
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/applications/audio/audacious/player.nix b/pkgs/applications/audio/audacious/player.nix
new file mode 100644
index 000000000000..5c301d59574a
--- /dev/null
+++ b/pkgs/applications/audio/audacious/player.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, pkgconfig, glib, gtk, libmowgli
+, libglade, libmcs, gettext, xlibs, dbus_glib
+}:
+
+stdenv.mkDerivation {
+  name = "audacious-1.4.6";
+  
+  src = fetchurl {
+    url = http://distfiles.atheme.org/audacious-1.4.6.tbz2;
+    sha256 = "0n4za82xlh3nfvfk0hq81bmh0sx233gxq8xj68jzalmbijsnbs0l";
+  };
+
+  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
new file mode 100644
index 000000000000..1abcacaf9593
--- /dev/null
+++ b/pkgs/applications/audio/audacious/plugins.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, pkgconfig, audacious, dbus_glib, gettext
+, libmad, xlibs, alsaLib, taglib, libmpcdec, libogg, libvorbis
+}:
+
+stdenv.mkDerivation {
+  name = "audacious-plugins-1.4.5";
+  
+  src = fetchurl {
+    url = http://distfiles.atheme.org/audacious-plugins-1.4.5.tbz2;
+    sha256 = "145dn2x1rldwbaxnl19j7cw338fs9fwcn607r8gk01adfy3warxq";
+  };
+
+  buildInputs = [
+    pkgconfig audacious dbus_glib gettext libmad
+    xlibs.libXcomposite alsaLib taglib libmpcdec
+    libogg libvorbis
+  ];
+
+  preBuild = ''
+    makeFlagsArray=(pluginlibdir=$out/lib/audacious)
+  '';
+
+  NIX_LDFLAGS = "-L${audacious}/lib/audacious"; # needed because we override pluginlibdir
+
+  meta = {
+    description = "Plugins for the Audacious media player";
+    homepage = http://audacious-media-player.org/;
+  };
+}