Add mpc123, a Musepack command-line player.
svn path=/nixpkgs/trunk/; revision=19722
This commit is contained in:
parent
7f213f0403
commit
8a57c8bf35
32
pkgs/applications/audio/mpc123/default.nix
Normal file
32
pkgs/applications/audio/mpc123/default.nix
Normal file
@ -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
|
||||||
|
};
|
||||||
|
}
|
13
pkgs/applications/audio/mpc123/use-gcc.patch
Normal file
13
pkgs/applications/audio/mpc123/use-gcc.patch
Normal file
@ -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
|
||||||
|
|
@ -7402,6 +7402,10 @@ let
|
|||||||
inherit (xlibs) libX11 xproto;
|
inherit (xlibs) libX11 xproto;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mpc123 = import ../applications/audio/mpc123 {
|
||||||
|
inherit stdenv fetchurl gettext libao libmpcdec;
|
||||||
|
};
|
||||||
|
|
||||||
mpg321 = import ../applications/audio/mpg321 {
|
mpg321 = import ../applications/audio/mpg321 {
|
||||||
inherit stdenv fetchurl libao libmad libid3tag zlib;
|
inherit stdenv fetchurl libao libmad libid3tag zlib;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user