summary refs log tree commit diff
path: root/pkgs/applications/audio/pamixer/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/audio/pamixer/default.nix')
-rw-r--r--pkgs/applications/audio/pamixer/default.nix38
1 files changed, 18 insertions, 20 deletions
diff --git a/pkgs/applications/audio/pamixer/default.nix b/pkgs/applications/audio/pamixer/default.nix
index d273c238177..d665b83340c 100644
--- a/pkgs/applications/audio/pamixer/default.nix
+++ b/pkgs/applications/audio/pamixer/default.nix
@@ -1,20 +1,16 @@
-{ stdenv, fetchgit, pulseaudio, boost }:
-
-let
-  tag = "1.1";
-in
+{ stdenv, fetchurl, boost, pulseaudio }:
 
 stdenv.mkDerivation rec {
 
-  name = "pamixer-${tag}";
+  name = "pamixer-${version}";
+  version = "1.2.1";
 
-  src = fetchgit {
-    url = git://github.com/cdemoulins/pamixer;
-    rev = "refs/tags/${tag}";
-    sha256 = "03r0sbfj85wp6yxa87pjg69ivmk0mxxa2nykr8gf2c607igmb034";
+  src = fetchurl {
+    url = "https://github.com/cdemoulins/pamixer/archive/${version}.tar.gz";
+    sha256 = "1ad6b46hh02hs1978pgihrm2bnq4z2v0imrfm3wy74xdkr6xjxy4";
   };
 
-  buildInputs = [ pulseaudio boost ];
+  buildInputs = [ boost pulseaudio ];
 
   installPhase = ''
     mkdir -p $out/bin
@@ -22,17 +18,19 @@ stdenv.mkDerivation rec {
   '';
 
   meta = with stdenv.lib; {
-    description = "Like amixer but for pulseaudio";
-    longDescription = "Features:
-      - Get the current volume of the default sink, the default source or a selected one by his id
-      - Set the volume for the default sink, the default source or any other device
-      - List the sinks
-      - List the sources
-      - Increase / Decrease the volume for a device
-      - Mute or unmute a device";
+    description = "Pulseaudio command line mixer";
+    longDescription = ''
+      Features:
+        - Get the current volume of the default sink, the default source or a selected one by his id
+        - Set the volume for the default sink, the default source or any other device
+        - List the sinks
+        - List the sources
+        - Increase / Decrease the volume for a device
+        - Mute or unmute a device
+    '';
     homepage = https://github.com/cdemoulins/pamixer;
     license = licenses.gpl3;
+    maintainers = with maintainers; [ _1126 ];
     platforms = platforms.linux;
-    maintainers = [ maintainers._1126 ];
   };
 }