mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 12:44:20 +00:00
luaformatter: fix x86_64 darwin (#345839)
This commit is contained in:
commit
5b1e84da9d
@ -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";
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user