depot/third_party/nixpkgs/pkgs/development/tools/luaformatter/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

30 lines
678 B
Nix

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