1.6k sao GitHub và vẫn tăng — NixOS/nixfmt là dự án Haskell mà TopGit đang theo dõi trên nền tảng. The official formatter for Nix code
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Nixfmt is the official formatter for Nix language code.
The standard Nix format incorporates artistic formatting and is defined in standard.md.
Nixfmt is maintained by the Nix formatting team.
This document is the user documentation, see CONTRIBUTING.md for contributor documentation.
Installation
[!NOTE]
nixfmt can only process one file at a time.
Consider using a configuration helper for formatting a project.
In the environment
NixOS
To install nixfmt on NixOS for all users, add it to the environment.systemPackages configuration option:
If you want to use a stable version of nixfmt, then replace <version> with a tag from this repo. If you want to use an unstable version of nixfmt, then replace <version> with a commit hash from this repo.
Try to commit a badly formatted Nix file in order to make sure that everything works.
git mergetool
nixfmt provides a mode usable by git mergetool
via --mergetool that allows resolving formatting-related conflicts automatically in many cases.
git mergetool -t nixfmt .
# or, only for some specific files
git mergetool -t nixfmt FILE1 FILE2 FILE3
and some .nix files will probably get merged automagically.
Note that files that git merges successfully even before git mergetool
will be ignored by `git mergetool`.
If you don't like the result, run
git restore --merge .
# or, only for some specific files
git restore --merge FILE1 FILE2 FILE3
to return back to the unmerged state.
nix fmt (experimental)
nix fmt (part of the flakes experimental feature) can be configured to use nixfmt by setting the formatter flake output to nixfmt-tree (assuming a nixpkgs flake input exists):
NixOS/nixfmt thuộc nhóm Developer Tools trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về NixOS/nixfmt ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/NixOS/nixfmt là nguồn chính thức.
NixOS/nixfmt có phải mã nguồn mở không?
Có — NixOS/nixfmt phát hành theo license MPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/NixOS/nixfmt.
NixOS/nixfmt là gì?
NixOS/nixfmt (NixOS/nixfmt) là dự án Haskell trên GitHub. Theo mô tả gốc: The official formatter for Nix code
NixOS/nixfmt so với các dự án Developer Tools khác thế nào?
NixOS/nixfmt được TopGit xếp vào nhóm Developer Tools, với 1.6k sao GitHub và viết bằng Haskell. Xem trang chủ đề Developer Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao NixOS/nixfmt được xếp vào nhóm Developer Tools?
TopGit xếp NixOS/nixfmt vào nhóm Developer Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "formatter", "haskell", "nix"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc nixfmt có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về nixfmt.