2024-07-29 18:29:54 -04:00
|
|
|
# Flake Update Diff Tool
|
|
|
|
|
|
|
|
This is the Nix flake update validator. A tool which is able to evaluate a flake
|
|
|
|
at two points in history, check that everything evaluates, and provide a diff
|
|
|
|
of the two. In its target state, it will provide a similar function to
|
|
|
|
DeterminateSystems' awesome `update-flake-lock` tool, but with `nvd` integration
|
|
|
|
and other bells and whistles that we've come to like.
|
|
|
|
|
|
|
|
## How to Use
|
|
|
|
|
|
|
|
Currently, this only supports locally-stored flakes, although we are planning to
|
|
|
|
add support for `git`-based URLs for usage outside of CI pipelines where the
|
|
|
|
repository is already downloaded.
|
|
|
|
|
|
|
|
``` shell
|
2025-03-02 00:57:45 -05:00
|
|
|
nix run git+https://nayeonie.com/ahuston-0/flake-update-diff-tool -- <flake path>
|
2024-07-29 18:29:54 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
For use in other nix-based projects, `flpudt` is available as
|
|
|
|
`packages.${system}.flupdt`. Please see our `examples/` folder for common
|
|
|
|
use-cases.
|
|
|
|
|
2024-08-03 00:21:44 -04:00
|
|
|
## Why the name
|
2024-07-29 18:29:54 -04:00
|
|
|
|
|
|
|
`flupdt` comes from Fl(ake) Up(date) D(iff) T(ool). The cli is also available as
|
|
|
|
`flake-update-diff-tool`, for ease-of-use and those who use screen readers or
|
|
|
|
similar accessibility tools that may not react well to `flupdt`.
|