mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
Update mpg321 from 0.2.13-2 to 0.3.2.
Also - ensure that the man pages are installed, - add myself as maintainer, and - enable ALSA support on Linux.
This commit is contained in:
parent
b0321dadcb
commit
37e2338042
|
@ -1,20 +1,28 @@
|
||||||
{stdenv, fetchurl, libao, libmad, libid3tag, zlib}:
|
{stdenv, fetchurl, libao, libmad, libid3tag, zlib, alsaLib}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mpg321-0.2.13-2";
|
name = "mpg321-${version}";
|
||||||
|
version = "0.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/mpg321/0.2.13/${name}.tar.gz";
|
url = "mirror://sourceforge/mpg321/${version}/mpg321_${version}.orig.tar.gz";
|
||||||
sha256 = "0zx9xyr97frlyrwyk2msm9h1sn2b84vqaxcy5drbzcd2n585lwlx";
|
sha256 = "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [libao libid3tag libmad zlib];
|
configureFlags = [
|
||||||
|
("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no"))
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
buildInputs = [libao libid3tag libmad zlib]
|
||||||
|
++ stdenv.lib.optional stdenv.isLinux alsaLib;
|
||||||
|
|
||||||
|
installTargets = "install install-man";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "Command-line MP3 player";
|
description = "Command-line MP3 player";
|
||||||
homepage = http://mpg321.sourceforge.net/;
|
homepage = http://mpg321.sourceforge.net/;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ ];
|
maintainers = [ maintainers.rycee ];
|
||||||
platforms = stdenv.lib.platforms.gnu;
|
platforms = platforms.gnu;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue