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
Quantum Jump 6e0ca02425 Fix dry-run flag for nix-collect-garbage
`nix-collect-garbage --dry-run` previously elided the entire garbage
collection check, meaning that it would just exit the script without
printing anything.

This change makes the dry run flag instead set the GC action to
`gcReturnDead` rather than `gcDeleteDead`, and then continue with the
script. So if you set `--dry-run`, it will print the paths it *would*
have garbage collected, but not actually delete them.

I filed a bug for this: https://git.lix.systems/lix-project/lix/issues/432 but then realised I could give fixing it a go myself.

Change-Id: I062dbf1a80bbab192b5fd0b3a453a0b555ad16f2
2024-07-09 13:55:05 +00:00
.github
bench
clang-tidy
contrib
doc Fix dry-run flag for nix-collect-garbage 2024-07-09 13:55:05 +00:00
lix-doc
maintainers
meson
misc
nix-support
perl libutil: allow draining Generator<Bytes> into sinks 2024-07-03 11:46:53 +00:00
releng
scripts
src Fix dry-run flag for nix-collect-garbage 2024-07-09 13:55:05 +00:00
subprojects/aws_sdk
tests Fix dry-run flag for nix-collect-garbage 2024-07-09 13:55:05 +00:00
.clang-format
.clang-tidy
.dir-locals.el
.editorconfig
.envrc
.gitignore
.this-is-lix
boehmgc-coroutine-sp-fallback.diff
CONTRIBUTING.md
COPYING
default.nix
docker.nix
flake.lock
flake.nix
justfile
meson.build libutil: generator type with on-yield value mapping 2024-07-03 11:46:53 +00:00
meson.options
package.nix
README.md
shell.nix
treefmt.toml
version.json

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 the LGPL v2.1.