1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/applications/audio/mpc123/default.nix
Ludovic Courtès 8a57c8bf35 Add mpc123, a Musepack command-line player.
svn path=/nixpkgs/trunk/; revision=19722
2010-01-28 22:34:27 +00:00

33 lines
806 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).
'' 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
};
}