Files
nixpkgs/pkgs/development/lua-modules/generic/default.nix
Wolfgang Walther 373b41e152 lua{54,Jit}Packages.lua-pam: mark as broken
Removes the roll-your-own-broken-attribute that `disabled` was. The
advantage of `meta.broken`: It can be caught and properly handled by CI,
while the custom `throw` can not.

(cherry picked from commit 236cf1200e)
2025-07-22 06:28:09 +00:00

32 lines
565 B
Nix

{
lua,
writeText,
toLuaModule,
}:
{
propagatedBuildInputs ? [ ],
makeFlags ? [ ],
...
}@attrs:
toLuaModule (
lua.stdenv.mkDerivation (
attrs
// {
name = "lua${lua.luaversion}-" + attrs.pname + "-" + attrs.version;
makeFlags = [
"PREFIX=$(out)"
"LUA_INC=-I${lua}/include"
"LUA_LIBDIR=$(out)/lib/lua/${lua.luaversion}"
"LUA_VERSION=${lua.luaversion}"
] ++ makeFlags;
propagatedBuildInputs = propagatedBuildInputs ++ [
lua # propagate it for its setup-hook
];
}
)
)