Add mpc123, a Musepack command-line player.

svn path=/nixpkgs/trunk/; revision=19722

+49
+32
pkgs/applications/audio/mpc123/default.nix
··· 1 + { fetchurl, stdenv, gettext, libmpcdec, libao }: 2 + 3 + let version = "0.2.4"; in 4 + stdenv.mkDerivation rec { 5 + name = "mpc123-${version}"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/mpc123/version%20${version}/${name}.tar.gz"; 9 + sha256 = "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1"; 10 + }; 11 + 12 + patches = [ ./use-gcc.patch ]; 13 + 14 + buildInputs = [ gettext libmpcdec libao ]; 15 + 16 + installPhase = 17 + # XXX: Should install locales too (though there's only 1 available). 18 + '' ensureDir "$out/bin" 19 + cp -v mpc123 "$out/bin" 20 + ''; 21 + 22 + meta = { 23 + homepage = http://mpc123.sourceforge.net/; 24 + 25 + description = "mpc123, a Musepack (.mpc) audio player"; 26 + 27 + license = "GPLv2+"; 28 + 29 + maintainers = [ stdenv.lib.maintainers.ludo ]; 30 + platforms = stdenv.lib.platforms.gnu; # arbitrary choice 31 + }; 32 + }
+13
pkgs/applications/audio/mpc123/use-gcc.patch
··· 1 + Don't worry, just use GCC and everything's gonna be alright. 2 + 3 + --- mpc123-0.2.4/Makefile 2008-03-21 22:14:38.000000000 +0100 4 + +++ mpc123-0.2.4/Makefile 2010-01-28 23:26:49.000000000 +0100 5 + @@ -17,7 +17,7 @@ 6 + # along with this program; if not, write to the Free Software Foundation, 7 + # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 8 + 9 + -CC := $(shell which colorgcc || which cc) 10 + +CC := gcc 11 + 12 + TAGSPRG := ctags 13 +
+4
pkgs/top-level/all-packages.nix
··· 7402 7402 inherit (xlibs) libX11 xproto; 7403 7403 }; 7404 7404 7405 + mpc123 = import ../applications/audio/mpc123 { 7406 + inherit stdenv fetchurl gettext libao libmpcdec; 7407 + }; 7408 + 7405 7409 mpg321 = import ../applications/audio/mpg321 { 7406 7410 inherit stdenv fetchurl libao libmad libid3tag zlib; 7407 7411 };