summary refs log tree commit diff
path: root/pkgs/applications/audio/mpc123/default.nix
blob: 2f00638961c3d5ca9595333954af867ee6932f02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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).
    '' mkdir -p "$out/bin"
       cp -v mpc123 "$out/bin"
    '';

  meta = {
    homepage = http://mpc123.sourceforge.net/;

    description = "mpc123, a Musepack (.mpc) audio player";

    license = "GPLv2+";

    maintainers = [ ];
    platforms = stdenv.lib.platforms.gnu; # arbitrary choice
  };
}