summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2015-01-10 13:51:15 +0100
committerRobert Helgesson <robert@rycee.net>2015-01-10 14:10:25 +0100
commit37e2338042bcfd607ce5457b3dad92b42e5cf62c (patch)
tree20c502c71abdcc704fbdfe109398b29eb5d62cf0 /pkgs/applications
parentb0321dadcbfe12c08cd72f9865b1a41fe1b9ceed (diff)
downloadnixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar.gz
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar.bz2
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar.lz
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar.xz
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.tar.zst
nixpkgs-37e2338042bcfd607ce5457b3dad92b42e5cf62c.zip
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.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/audio/mpg321/default.nix26
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/applications/audio/mpg321/default.nix b/pkgs/applications/audio/mpg321/default.nix
index 939c9f79e4d..489831dc464 100644
--- a/pkgs/applications/audio/mpg321/default.nix
+++ b/pkgs/applications/audio/mpg321/default.nix
@@ -1,20 +1,28 @@
-{stdenv, fetchurl, libao, libmad, libid3tag, zlib}:
+{stdenv, fetchurl, libao, libmad, libid3tag, zlib, alsaLib}:
 
 stdenv.mkDerivation rec {
-  name = "mpg321-0.2.13-2";
+  name = "mpg321-${version}";
+  version = "0.3.2";
 
   src = fetchurl {
-    url = "mirror://sourceforge/mpg321/0.2.13/${name}.tar.gz";
-    sha256 = "0zx9xyr97frlyrwyk2msm9h1sn2b84vqaxcy5drbzcd2n585lwlx";
+    url = "mirror://sourceforge/mpg321/${version}/mpg321_${version}.orig.tar.gz";
+    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";
     homepage = http://mpg321.sourceforge.net/;
-    license = stdenv.lib.licenses.gpl2;
-    maintainers = [ ];
-    platforms = stdenv.lib.platforms.gnu;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.rycee ];
+    platforms = platforms.gnu;
   };
 }