1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/applications/audio/mpg321/default.nix
Robert Helgesson 37e2338042 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.
2015-01-10 14:10:25 +01:00

29 lines
778 B
Nix

{stdenv, fetchurl, libao, libmad, libid3tag, zlib, alsaLib}:
stdenv.mkDerivation rec {
name = "mpg321-${version}";
version = "0.3.2";
src = fetchurl {
url = "mirror://sourceforge/mpg321/${version}/mpg321_${version}.orig.tar.gz";
sha256 = "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5";
};
configureFlags = [
("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no"))
];
buildInputs = [libao libid3tag libmad zlib]
++ stdenv.lib.optional stdenv.isLinux alsaLib;
installTargets = "install install-man";
meta = with stdenv.lib; {
description = "Command-line MP3 player";
homepage = http://mpg321.sourceforge.net/;
license = licenses.gpl2;
maintainers = [ maintainers.rycee ];
platforms = platforms.gnu;
};
}