aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/top-level/lua-packages.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-18 16:32:00 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-18 16:32:00 +0000
commit0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (patch)
treebd701e982d896952f4291e4b795c85bb581593b8 /nixpkgs/pkgs/top-level/lua-packages.nix
parentdae1ae41b3a575e87d411e0cd9daa42a85c5aa89 (diff)
parent1c40ee6fc44f7eb474c69ea070a43247a1a2c83c (diff)
Merge commit '1c40ee6fc44f7eb474c69ea070a43247a1a2c83c'
Diffstat (limited to 'nixpkgs/pkgs/top-level/lua-packages.nix')
-rw-r--r--nixpkgs/pkgs/top-level/lua-packages.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/top-level/lua-packages.nix b/nixpkgs/pkgs/top-level/lua-packages.nix
index c9e9305666e..2fb09981c9a 100644
--- a/nixpkgs/pkgs/top-level/lua-packages.nix
+++ b/nixpkgs/pkgs/top-level/lua-packages.nix
@@ -132,6 +132,39 @@ with self; {
};
};
+ pulseaudio = buildLuaPackage rec {
+ pname = "pulseaudio";
+ version = "0.1";
+ name = "pulseaudio-${version}";
+
+ src = fetchFromGitHub {
+ owner = "doronbehar";
+ repo = "lua-pulseaudio";
+ rev = "v${version}";
+ sha256 = "0vldm34m3ysgn8gvwfdglpw4jl5680fvfay7pzs14gzkzcvgv25b";
+ };
+ disabled = (luaOlder "5.1") || (luaAtLeast "5.5");
+ buildInputs = [ pkgs.libpulseaudio ];
+ propagatedBuildInputs = [ lua ];
+ nativeBuildInputs = [ pkgs.pulseaudio pkgconfig ];
+
+ makeFlags = [
+ "INST_LIBDIR=${placeholder "out"}/lib/lua/${lua.luaversion}"
+ "INST_LUADIR=${placeholder "out"}/share/lua/${lua.luaversion}"
+ "LUA_BINDIR=${placeholder "out"}/bin"
+ ];
+ preBuild = ''
+ mkdir -p ${placeholder "out"}/lib/lua/${lua.luaversion}
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = "https://github.com/doronbehar/lua-pulseaudio";
+ description = "Libpulse Lua bindings";
+ maintainers = with maintainers; [ doronbehar ];
+ license = licenses.lgpl21;
+ };
+ };
+
vicious = toLuaModule(stdenv.mkDerivation rec {
pname = "vicious";
version = "2.3.1";