summaryrefslogtreecommitdiff
path: root/nix/pulseaudio-ctl.nix
blob: 5747b72e6c0fb9add757176ad54b4fca634f3fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ stdenv, fetchgit, makeWrapper, bc }:

stdenv.mkDerivation {
  name = "pulseaudio-ctl";
  src = fetchgit {
    url = "https://github.com/graysky2/pulseaudio-ctl";
    rev = "7650068abe5c1ccbb3003879f6cbd1a322ce5e66";
    sha256 = "020zq5l7527rp16qb7z82c2v5jf1rg2d6vk5drr0n7y8wq2f6prm";
  };
  makeFlags = ["PREFIX=$(out)"];
  buildInputs = [ makeWrapper ];
  postInstall = ''
    wrapProgram $out/bin/pulseaudio-ctl \
      --prefix PATH : ${bc}/bin
  '';
}