Unverified Commit cbf353fd authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

luaPackages.toml-edit: unbreak on darwin (#314611)



* luaPackages.toml-edit: unbreak on darwin

(cherry picked from commit b0b63ae37cd30a6649357d115d92193c07e0f293)

* use lua.pkgs.isLuaJIT

(cherry picked from commit a9bf74b3adbb3833987c4f8cba18d54159124095)

---------

Co-authored-by: default avatarMathis Antony <sveitser@gmail.com>
parent a515734c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -734,6 +734,9 @@ in
      hash = "sha256-2P+mokkjdj2PccQG/kAGnIoUPVnK2FqNfYpHPhsp8kw=";
    };

    NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
      (if lua.pkgs.isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua");

    nativeBuildInputs = oa.nativeBuildInputs ++ [
      cargo
      rustPlatform.cargoSetupHook