at 22.05-pre 883 B view raw
1{ lib, stdenv, fetchFromGitHub, substituteAll, antlr4, libargs, catch2, cmake, libyamlcpp }: 2 3stdenv.mkDerivation rec { 4 pname = "luaformatter"; 5 version = "1.3.6"; 6 7 src = fetchFromGitHub { 8 owner = "Koihik"; 9 repo = "LuaFormatter"; 10 rev = version; 11 sha256 = "14l1f9hrp6m7z3cm5yl0njba6gfixzdirxjl8nihp9val0685vm0"; 12 }; 13 14 patches = [ 15 (substituteAll { 16 src = ./fix-lib-paths.patch; 17 antlr4RuntimeCpp = antlr4.runtime.cpp.dev; 18 inherit libargs catch2 libyamlcpp; 19 }) 20 ]; 21 22 nativeBuildInputs = [ cmake ]; 23 24 buildInputs = [ antlr4.runtime.cpp libyamlcpp ]; 25 26 meta = with lib; { 27 description = "Code formatter for Lua"; 28 homepage = "https://github.com/Koihik/LuaFormatter"; 29 license = licenses.asl20; 30 platforms = platforms.all; 31 maintainers = with maintainers; [ figsoda SuperSandro2000 ]; 32 mainProgram = "lua-format"; 33 }; 34}