diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-06-03 15:51:22 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-06-03 15:51:56 +0800 |
commit | 33ff34f3a21c7f8870159835be2152ddf3d148e2 (patch) | |
tree | c597c4e25141d3419069b3e0ab7f7511d6874150 /pkgs/applications | |
parent | 4ae5f8a92aa1e8ae21c3e40d5cbb29fae424de1b (diff) | |
download | nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar.gz nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar.bz2 nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar.lz nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar.xz nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.tar.zst nixlib-33ff34f3a21c7f8870159835be2152ddf3d148e2.zip |
pulseaudio-ctl: init at 1.66
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/pulseaudio-ctl/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pulseaudio-ctl/default.nix b/pkgs/applications/audio/pulseaudio-ctl/default.nix new file mode 100644 index 000000000000..6e1e576043d1 --- /dev/null +++ b/pkgs/applications/audio/pulseaudio-ctl/default.nix @@ -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; + }; +} |