mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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)
This commit is contained in:
committed by
github-actions[bot]
parent
be125bdb19
commit
373b41e152
@@ -5,15 +5,11 @@
|
||||
}:
|
||||
|
||||
{
|
||||
disabled ? false,
|
||||
propagatedBuildInputs ? [ ],
|
||||
makeFlags ? [ ],
|
||||
...
|
||||
}@attrs:
|
||||
|
||||
if disabled then
|
||||
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
||||
else
|
||||
toLuaModule (
|
||||
lua.stdenv.mkDerivation (
|
||||
attrs
|
||||
|
||||
@@ -121,8 +121,6 @@ rec {
|
||||
buildLuaPackage rec {
|
||||
pname = "lua-pam";
|
||||
version = "unstable-2015-07-03";
|
||||
# Needed for `disabled`, overridden in buildLuaPackage
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "devurandom";
|
||||
@@ -147,10 +145,9 @@ rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# The package does not build with lua 5.4 or luaJIT
|
||||
disabled = luaAtLeast "5.4" || isLuaJIT;
|
||||
|
||||
meta = with lib; {
|
||||
# The package does not build with lua 5.4 or luaJIT
|
||||
broken = luaAtLeast "5.4" || isLuaJIT;
|
||||
description = "Lua module for PAM authentication";
|
||||
homepage = "https://github.com/devurandom/lua-pam";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user