2015-01-10 13:51:15 +01:00
|
|
|
{stdenv, fetchurl, libao, libmad, libid3tag, zlib, alsaLib}:
|
2008-02-11 22:02:38 +01:00
|
|
|
|
2011-07-07 17:10:33 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-10 13:51:15 +01:00
|
|
|
name = "mpg321-${version}";
|
|
|
|
version = "0.3.2";
|
2011-07-07 17:10:33 +02:00
|
|
|
|
2008-02-11 22:02:38 +01:00
|
|
|
src = fetchurl {
|
2015-01-10 13:51:15 +01:00
|
|
|
url = "mirror://sourceforge/mpg321/${version}/mpg321_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5";
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 02:59:47 +01:00
|
|
|
|
2015-01-10 13:51:15 +01:00
|
|
|
configureFlags = [
|
|
|
|
("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no"))
|
|
|
|
];
|
2008-02-11 22:02:38 +01:00
|
|
|
|
2015-01-10 13:51:15 +01:00
|
|
|
buildInputs = [libao libid3tag libmad zlib]
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux alsaLib;
|
|
|
|
|
|
|
|
installTargets = "install install-man";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Command-line MP3 player";
|
2008-02-11 22:02:38 +01:00
|
|
|
homepage = http://mpg321.sourceforge.net/;
|
2015-01-10 13:51:15 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.gnu;
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
}
|