2021-02-17 15:22:01 +00:00
|
|
|
{ cmake, fetchFromGitHub, lib, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "luaformatter";
|
2021-05-13 14:20:36 +01:00
|
|
|
version = "1.3.5";
|
2021-02-17 15:22:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koihik";
|
|
|
|
repo = "luaformatter";
|
|
|
|
rev = version;
|
2021-05-13 14:20:36 +01:00
|
|
|
sha256 = "sha256-TMo6zRfhVAXVh0tIC0PecaJCKr0ev45jOKm2+reTtS4=";
|
2021-02-17 15:22:01 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp lua-format $out/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Code formatter for lua";
|
|
|
|
homepage = "https://github.com/koihik/luaformatter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|