A modern, delicious implementation of the Nix package manager, focused on correctness, usability, and growth — and committed to doing right by its community
Find a file
Jonas Chevalier 2265536e85 fix(nix fmt): remove the default "." argument
When `nix fmt` is called without an argument, Nix appends the "." argument before calling the formatter. The comment in the code is:
> Format the current flake out of the box

This also happens when formatting sub-folders.

This means that the formatter is now unable to distinguish, as an interface, whether the "." argument is coming from the flake or the user's intent to format the current folder. This decision should be up to the formatter.

Treefmt, for example, will automatically look up the project's root and format all the files. This is the desired behaviour. But because the "." argument is passed, it cannot function as expected.

Upstream-PR: https://github.com/nixos/nix/pull/11438

Change-Id: I60fb6b3ed4ec1b24f81b5f0d76c0be98470817ce
2024-09-26 14:32:29 -07:00
.github
bench
contrib
doc fix(nix fmt): remove the default "." argument 2024-09-26 14:32:29 -07:00
maintainers
meson clang-tidy: fix the fact that we are not linting headers properly 2024-08-28 09:52:08 -07:00
misc
nix-support
perl
releng
scripts
src fix(nix fmt): remove the default "." argument 2024-09-26 14:32:29 -07:00
subprojects rowan: 0.15.15 -> 0.15.16 2024-08-26 11:34:43 -07:00
tests fix(nix fmt): remove the default "." argument 2024-09-26 14:32:29 -07:00
.clang-format
.clang-tidy
.dir-locals.el
.editorconfig
.envrc
.gitignore build: move to a Cargo workspace 2024-08-21 17:09:10 +00:00
.this-is-lix
Cargo.lock rowan: 0.15.15 -> 0.15.16 2024-08-26 11:34:43 -07:00
Cargo.toml build: move to a Cargo workspace 2024-08-21 17:09:10 +00:00
CONTRIBUTING.md
COPYING
default.nix
docker.nix
flake.lock
flake.nix forbid gcc for compilation, only allow clang 2024-09-09 01:48:20 +00:00
justfile
meson.build forbid gcc for compilation, only allow clang 2024-09-09 01:48:20 +00:00
meson.options
package.nix forbid gcc for compilation, only allow clang 2024-09-09 01:48:20 +00:00
README.md
shell.nix
treefmt.toml
version.json Update version to 2.92 2024-08-12 18:06:08 -07:00

Lix

Lix is an implementation of Nix, a powerful package management system for Linux and other Unix systems that makes package management reliable and reproducible.

Read more about us at https://lix.systems.

Installation

On Linux and macOS the easiest way to install Lix is to run the following shell command (as a user other than root):

$ curl -sSf -L https://install.lix.systems/lix | sh -s -- install

For systems that already have a Nix implementation installed, such as NixOS systems, read our install page

Building And Developing

See our Hacking guide in our manual for instruction on how to to set up a development environment and build Lix from source.

Additional Resources

License

Lix is released under LGPL-2.1-or-later.