luaPackages.toml-edit: move NIX_LDFLAGS into env for structuredAttrs (#502567)

This commit is contained in:
Austin Horstman
2026-03-23 13:14:27 +00:00
committed by GitHub
+5 -3
View File
@@ -1129,9 +1129,11 @@ in
hash = "sha256-8lYvdraKEd1nf8dkZuSDQRVJvX56gHCcTZVtyoy/0IM=";
};
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin (
if lua.pkgs.isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua"
);
env = old.env // {
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin (
if lua.pkgs.isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua"
);
};
nativeBuildInputs = old.nativeBuildInputs ++ [
cargo