2010-08-21 18:54:02 +02:00
|
|
|
{stdenv, fetchurl, alsaLib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-03-14 10:35:36 +01:00
|
|
|
name = "mpg123-1.19.0";
|
2010-08-21 18:54:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-14 10:35:36 +01:00
|
|
|
url = mirror://sourceforge/mpg123/mpg123-1.19.0.tar.bz2;
|
|
|
|
sha256 = "06xhd68mj9yp0r6l771aq0d7xgnl402a3wm2mvhxmd3w3ph29446";
|
2010-08-21 18:54:02 +02:00
|
|
|
};
|
|
|
|
|
2013-07-04 06:52:14 +02:00
|
|
|
buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
|
2010-08-21 18:54:02 +02:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|