summaryrefslogtreecommitdiff
path: root/nix/pulseaudio-ctl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/pulseaudio-ctl.nix')
-rw-r--r--nix/pulseaudio-ctl.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nix/pulseaudio-ctl.nix b/nix/pulseaudio-ctl.nix
new file mode 100644
index 0000000..5747b72
--- /dev/null
+++ b/nix/pulseaudio-ctl.nix
@@ -0,0 +1,16 @@
1{ stdenv, fetchgit, makeWrapper, bc }:
2
3stdenv.mkDerivation {
4 name = "pulseaudio-ctl";
5 src = fetchgit {
6 url = "https://github.com/graysky2/pulseaudio-ctl";
7 rev = "7650068abe5c1ccbb3003879f6cbd1a322ce5e66";
8 sha256 = "020zq5l7527rp16qb7z82c2v5jf1rg2d6vk5drr0n7y8wq2f6prm";
9 };
10 makeFlags = ["PREFIX=$(out)"];
11 buildInputs = [ makeWrapper ];
12 postInstall = ''
13 wrapProgram $out/bin/pulseaudio-ctl \
14 --prefix PATH : ${bc}/bin
15 '';
16}