Merge pull request #7460 from codyopel/pamixer

pamixer: remove unzip dependency
This commit is contained in:
Edward Tjörnhammar 2015-04-19 10:09:01 +02:00
commit bf47fb0aee

View File

@ -1,19 +1,16 @@
{ stdenv, fetchurl, unzip, pulseaudio, boost }: { stdenv, fetchurl, boost, pulseaudio }:
let
tag = "1.2.1";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pamixer-${tag}"; name = "pamixer-${version}";
version = "1.2.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/cdemoulins/pamixer/archive/1.2.1.zip"; url = "https://github.com/cdemoulins/pamixer/archive/${version}.tar.gz";
sha256 = "2e66bb9810c853ae2d020d5e6eeb2b68cd43c6434b2298ccc423d9810f0cbd6a"; sha256 = "1ad6b46hh02hs1978pgihrm2bnq4z2v0imrfm3wy74xdkr6xjxy4";
}; };
buildInputs = [ unzip pulseaudio boost ]; buildInputs = [ boost pulseaudio ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -21,17 +18,19 @@ stdenv.mkDerivation rec {
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Like amixer but for pulseaudio"; description = "Pulseaudio command line mixer";
longDescription = "Features: longDescription = ''
- Get the current volume of the default sink, the default source or a selected one by his id Features:
- Set the volume for the default sink, the default source or any other device - Get the current volume of the default sink, the default source or a selected one by his id
- List the sinks - Set the volume for the default sink, the default source or any other device
- List the sources - List the sinks
- Increase / Decrease the volume for a device - List the sources
- Mute or unmute a device"; - Increase / Decrease the volume for a device
- Mute or unmute a device
'';
homepage = https://github.com/cdemoulins/pamixer; homepage = https://github.com/cdemoulins/pamixer;
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ _1126 ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers._1126 ];
}; };
} }