Skip to content

Commit 922de4f

Browse files
doronbeharLassulus
authored andcommitted
luaPackages.pulseaudio: init at 0.1
1 parent 1097c03 commit 922de4f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

maintainers/scripts/luarocks-packages.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ say,,,,,
6868
std__debug,std._debug,,,,
6969
std_normalize,std.normalize,,,,
7070
stdlib,,,,,vyp
71+
pulseaudio,,,,,doronbehar

pkgs/top-level/lua-packages.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,39 @@ with self; {
132132
};
133133
};
134134

135+
pulseaudio = buildLuaPackage rec {
136+
pname = "pulseaudio";
137+
version = "0.1";
138+
name = "pulseaudio-${version}";
139+
140+
src = fetchFromGitHub {
141+
owner = "doronbehar";
142+
repo = "lua-pulseaudio";
143+
rev = "v${version}";
144+
sha256 = "0vldm34m3ysgn8gvwfdglpw4jl5680fvfay7pzs14gzkzcvgv25b";
145+
};
146+
disabled = (luaOlder "5.1") || (luaAtLeast "5.5");
147+
buildInputs = [ pkgs.libpulseaudio ];
148+
propagatedBuildInputs = [ lua ];
149+
nativeBuildInputs = [ pkgs.pulseaudio pkgconfig ];
150+
151+
makeFlags = [
152+
"INST_LIBDIR=${placeholder "out"}/lib/lua/${lua.luaversion}"
153+
"INST_LUADIR=${placeholder "out"}/share/lua/${lua.luaversion}"
154+
"LUA_BINDIR=${placeholder "out"}/bin"
155+
];
156+
preBuild = ''
157+
mkdir -p ${placeholder "out"}/lib/lua/${lua.luaversion}
158+
'';
159+
160+
meta = with stdenv.lib; {
161+
homepage = "https://github.com/doronbehar/lua-pulseaudio";
162+
description = "Libpulse Lua bindings";
163+
maintainers = with maintainers; [ doronbehar ];
164+
license = licenses.lgpl21;
165+
};
166+
};
167+
135168
vicious = toLuaModule(stdenv.mkDerivation rec {
136169
pname = "vicious";
137170
version = "2.3.1";

0 commit comments

Comments
 (0)