summary refs log tree commit diff
path: root/pkgs/applications/audio/mpg123/default.nix
blob: f14e2764211eb0cce08dc88cab1a594212757b73 (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
{stdenv, fetchurl, alsaLib }:

stdenv.mkDerivation {
  name = "mpg123-1.16.0";

  src = fetchurl {
    url = mirror://sourceforge/mpg123/mpg123-1.16.0.tar.bz2;
    sha256 = "1lznnfdvg69a9qbbhvhfc9i86hxdmdqx67lvbkqbh8mmhpip43zh";
  };

  buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;

  crossAttrs = {
    configureFlags = if stdenv.cross ? mpg123 then
      "--with-cpu=${stdenv.cross.mpg123.cpu}" else "";
  };

  meta = {
    description = "Command-line MP3 player";
    homepage = http://mpg123.sourceforge.net/;
    license = "LGPL";
  };
}