mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
4b7b083bcb
Include all linux platforms.
33 lines
819 B
Nix
33 lines
819 B
Nix
{ 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).
|
|
'' mkdir -p "$out/bin"
|
|
cp -v mpc123 "$out/bin"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://mpc123.sourceforge.net/;
|
|
|
|
description = "A Musepack (.mpc) audio player";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
|
};
|
|
}
|