pulseaudio-ctl: init at 1.66
This commit is contained in:
parent
4ae5f8a92a
commit
33ff34f3a2
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 { };
|
ptask = callPackage ../applications/misc/ptask { };
|
||||||
|
|
||||||
|
pulseaudio-ctl = callPackage ../applications/audio/pulseaudio-ctl { };
|
||||||
|
|
||||||
pulseaudio-dlna = callPackage ../applications/audio/pulseaudio-dlna { };
|
pulseaudio-dlna = callPackage ../applications/audio/pulseaudio-dlna { };
|
||||||
|
|
||||||
pulseview = libsForQt5.callPackage ../applications/science/electronics/pulseview { };
|
pulseview = libsForQt5.callPackage ../applications/science/electronics/pulseview { };
|
||||||
|
Loading…
Reference in New Issue
Block a user