mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
pulseaudio-ctl: init at 1.66
This commit is contained in:
parent
4ae5f8a92a
commit
33ff34f3a2
2 changed files with 43 additions and 0 deletions
41
pkgs/applications/audio/pulseaudio-ctl/default.nix
Normal file
41
pkgs/applications/audio/pulseaudio-ctl/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper
|
||||
, bc, dbus, gawk, gnused, libnotify, pulseaudioLight }:
|
||||
|
||||
let
|
||||
path = stdenv.lib.makeBinPath [ bc dbus gawk gnused libnotify pulseaudioLight ];
|
||||
pname = "pulseaudio-ctl";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "1.66";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "graysky2";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "19a24w7y19551ar41q848w7r1imqkl9cpff4dpb7yry7qp1yjg0y";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace /usr $out
|
||||
|
||||
substituteInPlace common/${pname}.in \
|
||||
--replace '$0' ${pname}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--prefix PATH : ${path}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Control pulseaudio volume from the shell or mapped to keyboard shortcuts. No need for alsa-utils.";
|
||||
homepage = https://bbs.archlinux.org/viewtopic.php?id=124513;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -17498,6 +17498,8 @@ with pkgs;
|
|||
|
||||
ptask = callPackage ../applications/misc/ptask { };
|
||||
|
||||
pulseaudio-ctl = callPackage ../applications/audio/pulseaudio-ctl { };
|
||||
|
||||
pulseaudio-dlna = callPackage ../applications/audio/pulseaudio-dlna { };
|
||||
|
||||
pulseview = libsForQt5.callPackage ../applications/science/electronics/pulseview { };
|
||||
|
|
Loading…
Reference in a new issue