Assertion throws err message on fail in buildLuaPackage
This commit is contained in:
parent
164e68c7d3
commit
111b5aa38c
@ -2,9 +2,10 @@ lua:
|
|||||||
|
|
||||||
{ buildInputs ? [], disabled ? false, ... } @ attrs:
|
{ buildInputs ? [], disabled ? false, ... } @ attrs:
|
||||||
|
|
||||||
assert !disabled;
|
if disabled then
|
||||||
|
throw "${attrs.name} not supported by interpreter lua-${lua.luaversion}"
|
||||||
lua.stdenv.mkDerivation ({
|
else
|
||||||
|
lua.stdenv.mkDerivation ({
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
makeFlagsArray=(
|
makeFlagsArray=(
|
||||||
@ -20,4 +21,4 @@ lua.stdenv.mkDerivation ({
|
|||||||
name = "lua${lua.luaversion}-" + attrs.name;
|
name = "lua${lua.luaversion}-" + attrs.name;
|
||||||
buildInputs = buildInputs ++ [ lua ];
|
buildInputs = buildInputs ++ [ lua ];
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
{fetchurl, stdenv, lua}:
|
{fetchurl, stdenv, lua}:
|
||||||
|
|
||||||
let self = _self; _self = with self; {
|
let self = _self; _self = with self; {
|
||||||
|
|
||||||
inherit (stdenv.lib) maintainers;
|
inherit (stdenv.lib) maintainers;
|
||||||
|
|
||||||
#define build lua package function
|
#define build lua package function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user