2010-08-21 18:54:02 +02:00
|
|
|
{stdenv, fetchurl, alsaLib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-12-14 16:25:10 +01:00
|
|
|
name = "mpg123-1.16.0";
|
2010-08-21 18:54:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-14 16:25:10 +01:00
|
|
|
url = mirror://sourceforge/mpg123/mpg123-1.16.0.tar.bz2;
|
|
|
|
sha256 = "1lznnfdvg69a9qbbhvhfc9i86hxdmdqx67lvbkqbh8mmhpip43zh";
|
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";
|
|
|
|
};
|
|
|
|
}
|