Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
919 B
Nix
50 lines
919 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
antlr4_9,
|
|
libargs,
|
|
catch2,
|
|
cmake,
|
|
yaml-cpp,
|
|
}:
|
|
let
|
|
antlr4 = antlr4_9;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "luaformatter";
|
|
version = "1.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Koihik";
|
|
repo = "LuaFormatter";
|
|
rev = version;
|
|
sha256 = "14l1f9hrp6m7z3cm5yl0njba6gfixzdirxjl8nihp9val0685vm0";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./fix-lib-paths.patch {
|
|
antlr4RuntimeCpp = antlr4.runtime.cpp.dev;
|
|
yamlCpp = yaml-cpp;
|
|
inherit libargs catch2;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
antlr4.runtime.cpp
|
|
yaml-cpp
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Code formatter for Lua";
|
|
homepage = "https://github.com/Koihik/LuaFormatter";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "lua-format";
|
|
};
|
|
}
|