1 { lib, stdenv, fetchFromGitHub, substituteAll, antlr4_9, libargs, catch2, cmake, yaml-cpp }:
7 stdenv.mkDerivation rec {
8 pname = "luaformatter";
11 src = fetchFromGitHub {
13 repo = "LuaFormatter";
15 sha256 = "14l1f9hrp6m7z3cm5yl0njba6gfixzdirxjl8nihp9val0685vm0";
20 src = ./fix-lib-paths.patch;
21 antlr4RuntimeCpp = antlr4.runtime.cpp.dev;
22 inherit libargs catch2 yaml-cpp;
26 nativeBuildInputs = [ cmake ];
28 buildInputs = [ antlr4.runtime.cpp yaml-cpp ];
31 description = "Code formatter for Lua";
32 homepage = "https://github.com/Koihik/LuaFormatter";
33 license = licenses.asl20;
34 platforms = platforms.all;
35 maintainers = with maintainers; [ figsoda ];
36 mainProgram = "lua-format";