From 6b443335b97cc2d6479595313e5a19d2f49c6b7a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 14 May 2016 19:59:26 +0200 Subject: pulseaudio-ctl --- nix/default.nix | 1 + nix/pulseaudio-ctl.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 nix/pulseaudio-ctl.nix 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 in rec { cliparg = pkgs.callPackage ./cliparg.nix {}; rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; + pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {}; } 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 @@ +{ 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 + ''; +} -- cgit v1.2.3