about summary refs log tree commit diff
path: root/pkgs/applications/audio/pamixer
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-09-29 17:33:07 -0300
committerThiago Kenji Okada <thiagokokada@gmail.com>2021-10-01 11:05:53 -0300
commit4c2579ed946e7c9bd370d1c0851e8c98980d09da (patch)
treecbaae99bc6da7272d053e7f6a7a21f4dc01e1ed8 /pkgs/applications/audio/pamixer
parente4f1de134350738207ca66162707a1306a5d1a1c (diff)
pamixer: 1.4 -> unstable-2021-03-29
Diffstat (limited to 'pkgs/applications/audio/pamixer')
-rw-r--r--pkgs/applications/audio/pamixer/default.nix20
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/applications/audio/pamixer/default.nix b/pkgs/applications/audio/pamixer/default.nix
index 244e688fe5710..4ea432885f601 100644
--- a/pkgs/applications/audio/pamixer/default.nix
+++ b/pkgs/applications/audio/pamixer/default.nix
@@ -1,20 +1,30 @@
-{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio, installShellFiles }:
 
 stdenv.mkDerivation rec {
   pname = "pamixer";
-  version = "1.4";
+  version = "unstable-2021-03-29";
 
   src = fetchFromGitHub {
     owner = "cdemoulins";
     repo = "pamixer";
-    rev = version;
-    sha256 = "1i14550n8paijwwnhksv5izgfqm3s5q2773bdfp6vyqybkll55f7";
+    rev = "4ea2594cb8c605dccd00a381ba19680eba368e94";
+    sha256 = "sha256-kV4wIxm1WZvqqyfmgQ2cSbRJwJR154OW0MMDg2ntf6g=";
   };
 
   buildInputs = [ boost libpulseaudio ];
 
+  nativeBuildInputs = [ installShellFiles ];
+
   installPhase = ''
+    runHook preInstall
+
     install -Dm755 pamixer -t $out/bin
+
+    runHook postInstall
+  '';
+
+  postInstall = ''
+    installManPage pamixer.1
   '';
 
   meta = with lib; {
@@ -29,7 +39,9 @@ stdenv.mkDerivation rec {
         - Mute or unmute a device
     '';
     homepage = "https://github.com/cdemoulins/pamixer";
+    maintainers = with maintainers; [ thiagokokada ];
     license = licenses.gpl3;
     platforms = platforms.linux;
+    mainProgram = "pamixer";
   };
 }