3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/luaformatter/default.nix
2021-05-13 15:20:36 +02:00

31 lines
677 B
Nix

{ cmake, fetchFromGitHub, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "luaformatter";
version = "1.3.5";
src = fetchFromGitHub {
owner = "koihik";
repo = "luaformatter";
rev = version;
sha256 = "sha256-TMo6zRfhVAXVh0tIC0PecaJCKr0ev45jOKm2+reTtS4=";
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 ];
};
}