commit 88aa2bb52317794b5597ab486fb8ea6a9c791f23 parent e5bb11b38a14f1072600db8ac7efbb9e32ccbc83 Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Sat, 30 May 2026 20:39:41 +0400 Add nginxfmt Diffstat:
| A | pkgs/by-name/ng/nginxfmt/package.nix | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/pkgs/by-name/ng/nginxfmt/package.nix b/pkgs/by-name/ng/nginxfmt/package.nix @@ -0,0 +1,28 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "nginxfmt"; + version = "1.4.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "slomkowski"; + repo = "nginx-config-formatter"; + tag = "v${finalAttrs.version}"; + hash = "sha256-HB1knL/q1G2z6RyVCsOyIKpp4O6x68/93ccvox1FKGQ="; + }; + + build-system = with python3Packages; [ poetry-core ]; + + meta = { + description = "nginx config file formatter/beautifier"; + homepage = "https://github.com/slomkowski/nginx-config-formatter"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sikmir ]; + mainProgram = "nginxfmt"; + }; +})
