nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 cmake,
5 lib,
6 nix-update-script,
7}:
8
9stdenv.mkDerivation (self: {
10 pname = "emmy-lua-code-style";
11 version = "1.6.0";
12
13 src = fetchFromGitHub {
14 owner = "CppCXY";
15 repo = "EmmyLuaCodeStyle";
16 tag = self.version;
17 hash = "sha256-FYtDO9ZL7MjC+vHzrylyYBQHTtef/GM9ipt//EcLr4w=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 passthru.updateScript = nix-update-script { };
23
24 meta = {
25 homepage = "https://github.com/CppCXY/EmmyLuaCodeStyle";
26 changelog = "https://github.com/CppCXY/EmmyLuaCodeStyle/releases/tag/${self.version}";
27 description = "Fast, powerful, and feature-rich Lua formatting and checking tool";
28 mainProgram = "CodeFormat";
29 platforms = lib.platforms.unix;
30 license = [ lib.licenses.mit ];
31 maintainers = [ lib.maintainers.nobbz ];
32 };
33})