2021-01-15 05:21:58 -08:00
|
|
|
{ fetchurl, lib, stdenv, gettext, libmpcdec, libao }:
|
2010-01-28 14:34:27 -08:00
|
|
|
|
|
|
|
let version = "0.2.4"; in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "mpc123";
|
|
|
|
inherit version;
|
2010-01-28 14:34:27 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 14:52:01 -07:00
|
|
|
url = "mirror://sourceforge/mpc123/version%20${version}/${pname}-${version}.tar.gz";
|
2010-01-28 14:34:27 -08: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 12:16:00 -08:00
|
|
|
'' mkdir -p "$out/bin"
|
2010-01-28 14:34:27 -08:00
|
|
|
cp -v mpc123 "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://mpc123.sourceforge.net/";
|
2010-01-28 14:34:27 -08:00
|
|
|
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "A Musepack (.mpc) audio player";
|
2010-01-28 14:34:27 -08:00
|
|
|
|
2021-01-15 05:21:58 -08:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2010-01-28 14:34:27 -08:00
|
|
|
|
2013-08-16 14:44:33 -07:00
|
|
|
maintainers = [ ];
|
2021-01-15 05:21:58 -08:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2010-01-28 14:34:27 -08:00
|
|
|
};
|
|
|
|
}
|