diff options
| -rw-r--r-- | nix/default.nix | 1 | ||||
| -rw-r--r-- | nix/pulseaudio-ctl.nix | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix index 36aaa22..ad181fa 100644 --- a/nix/default.nix +++ b/nix/default.nix | |||
| @@ -5,4 +5,5 @@ let | |||
| 5 | in rec { | 5 | in rec { |
| 6 | cliparg = pkgs.callPackage ./cliparg.nix {}; | 6 | cliparg = pkgs.callPackage ./cliparg.nix {}; |
| 7 | rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; | 7 | rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; |
| 8 | pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {}; | ||
| 8 | } | 9 | } |
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 | |||
| 3 | stdenv.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 | } | ||
