summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-04-18 10:31:25 -0700
committerMichael Raskin <7c6f434c@mail.ru>2014-04-18 10:31:25 -0700
commit97a3a803e1e78b9f7c042690aaa8e3551159dbfd (patch)
treead969dd810cc2b9997c65530a53554c59b3d31e4 /pkgs
parentb1fad4ab9be6d51d5bc2881fb89049378bb01054 (diff)
parent25f7565657d267d9f566c215d77216cfc719e789 (diff)
downloadnixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar.gz
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar.bz2
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar.lz
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar.xz
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.tar.zst
nixlib-97a3a803e1e78b9f7c042690aaa8e3551159dbfd.zip
Merge pull request #2313 from 1126/master
Adding pamixer.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/audio/pamixer/default.nix38
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pamixer/default.nix b/pkgs/applications/audio/pamixer/default.nix
new file mode 100644
index 000000000000..4337164fe3a4
--- /dev/null
+++ b/pkgs/applications/audio/pamixer/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchgit, pulseaudio, boost }:
+
+let
+  tag = "1.1";
+in
+
+stdenv.mkDerivation rec {
+
+  name = "pamixer-${tag}";
+
+  src = fetchgit {
+    url = git://github.com/cdemoulins/pamixer;
+    rev = "refs/tags/${tag}";
+    sha256 = "03r0sbfj85wp6yxa87pjg69ivmk0mxxa2nykr8gf2c607igmb034";
+  };
+
+  buildInputs = [ pulseaudio boost ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp pamixer $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "pamixer is 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";
+    homepage = https://github.com/cdemoulins/pamixer;
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = [ _1126 ];
+  };
+}
\ No newline at end of file
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f5add0b77a38..edbaf350d541 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8834,6 +8834,8 @@ let
 
   opusTools = callPackage ../applications/audio/opus-tools { };
 
+  pamixer = callPackage ../applications/audio/pamixer { };
+
   pan = callPackage ../applications/networking/newsreaders/pan {
     spellChecking = false;
   };