Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
571 B · 32 lines
Nix
123456789101112131415161718192021222324252627282930313233{ 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 ]; } ))