luaformatter: fix x86_64 darwin (#345839)

This commit is contained in:
Pol Dellaiera 2024-10-02 20:15:00 +02:00 committed by GitHub
commit 5b1e84da9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 6 deletions

View File

@ -1,9 +1,17 @@
{ lib, stdenv, fetchFromGitHub, substituteAll, antlr4_9, libargs, catch2, cmake, yaml-cpp }:
{
lib,
stdenv,
fetchFromGitHub,
substituteAll,
antlr4_9,
libargs,
catch2,
cmake,
yaml-cpp,
}:
let
antlr4 = antlr4_9;
in
stdenv.mkDerivation rec {
pname = "luaformatter";
version = "1.3.6";
@ -25,7 +33,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ antlr4.runtime.cpp yaml-cpp ];
buildInputs = [
antlr4.runtime.cpp
yaml-cpp
];
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.isDarwin && stdenv.isx86_64
) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1";
meta = with lib; {
description = "Code formatter for Lua";

View File

@ -18079,8 +18079,6 @@ with pkgs;
lttv = callPackage ../development/tools/misc/lttv { };
luaformatter = callPackage ../development/tools/luaformatter { };
lurk = callPackage ../development/tools/lurk { };
maizzle = callPackage ../development/tools/maizzle { };