2010-01-28 22:34:27 +00:00
|
|
|
{ fetchurl, stdenv, gettext, libmpcdec, libao }:
|
|
|
|
|
|
|
|
let version = "0.2.4"; in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "mpc123";
|
|
|
|
inherit version;
|
2010-01-28 22:34:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 22:52:01 +01:00
|
|
|
url = "mirror://sourceforge/mpc123/version%20${version}/${pname}-${version}.tar.gz";
|
2010-01-28 22:34:27 +00:00
|
|
|
sha256 = "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./use-gcc.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ gettext libmpcdec libao ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
# XXX: Should install locales too (though there's only 1 available).
|
2012-01-18 20:16:00 +00:00
|
|
|
'' mkdir -p "$out/bin"
|
2010-01-28 22:34:27 +00:00
|
|
|
cp -v mpc123 "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://mpc123.sourceforge.net/;
|
|
|
|
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "A Musepack (.mpc) audio player";
|
2010-01-28 22:34:27 +00:00
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-01-28 22:34:27 +00:00
|
|
|
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2018-04-30 23:47:47 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
2010-01-28 22:34:27 +00:00
|
|
|
};
|
|
|
|
}
|