summary refs log tree commit diff
path: root/pkgs/applications/audio/mpc123
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-01-28 22:34:27 +0000
committerLudovic Courtès <ludo@gnu.org>2010-01-28 22:34:27 +0000
commit8a57c8bf357966c0dd57f600f2e530493c4faaad (patch)
treec16b187ba4722f789292f167fe1676471f41e263 /pkgs/applications/audio/mpc123
parent7f213f0403056ba8df9378fbee877d72315febe2 (diff)
downloadnixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar.gz
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar.bz2
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar.lz
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar.xz
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.tar.zst
nixpkgs-8a57c8bf357966c0dd57f600f2e530493c4faaad.zip
Add mpc123, a Musepack command-line player.
svn path=/nixpkgs/trunk/; revision=19722
Diffstat (limited to 'pkgs/applications/audio/mpc123')
-rw-r--r--pkgs/applications/audio/mpc123/default.nix32
-rw-r--r--pkgs/applications/audio/mpc123/use-gcc.patch13
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mpc123/default.nix b/pkgs/applications/audio/mpc123/default.nix
new file mode 100644
index 00000000000..4ea26b458a7
--- /dev/null
+++ b/pkgs/applications/audio/mpc123/default.nix
@@ -0,0 +1,32 @@
+{ fetchurl, stdenv, gettext, libmpcdec, libao }:
+
+let version = "0.2.4"; in
+stdenv.mkDerivation rec {
+  name = "mpc123-${version}";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/mpc123/version%20${version}/${name}.tar.gz";
+    sha256 = "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1";
+  };
+
+  patches = [ ./use-gcc.patch ];
+
+  buildInputs = [ gettext libmpcdec libao ];
+
+  installPhase =
+    # XXX: Should install locales too (though there's only 1 available).
+    '' ensureDir "$out/bin"
+       cp -v mpc123 "$out/bin"
+    '';
+
+  meta = {
+    homepage = http://mpc123.sourceforge.net/;
+
+    description = "mpc123, a Musepack (.mpc) audio player";
+
+    license = "GPLv2+";
+
+    maintainers = [ stdenv.lib.maintainers.ludo ];
+    platforms = stdenv.lib.platforms.gnu; # arbitrary choice
+  };
+}
diff --git a/pkgs/applications/audio/mpc123/use-gcc.patch b/pkgs/applications/audio/mpc123/use-gcc.patch
new file mode 100644
index 00000000000..ca4cf84591c
--- /dev/null
+++ b/pkgs/applications/audio/mpc123/use-gcc.patch
@@ -0,0 +1,13 @@
+Don't worry, just use GCC and everything's gonna be alright.
+
+--- mpc123-0.2.4/Makefile	2008-03-21 22:14:38.000000000 +0100
++++ mpc123-0.2.4/Makefile	2010-01-28 23:26:49.000000000 +0100
+@@ -17,7 +17,7 @@
+ # along with this program; if not, write to the Free Software Foundation,
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ 
+-CC := $(shell which colorgcc || which cc)
++CC := gcc
+ 
+ TAGSPRG := ctags
+