forked from lix-project/lix
8458d98b27
Part of #7672
My main motivation is to be able to use `nix.checkConfig`[1]. This
doesn't work with Lix currently since the module uses `nix show-config`
if the Nix version is <2.20pre and `nix config show` otherwise. I think
this is the only instance where nixpkgs checks for which Nix commands
exist that affects us now, so I figured we could just perform the rename
here as well[2] and still provide the current version number[3].
I don't have a strong opinion on whether to deprecate `nix show-config`,
the warning is added there automatically.
(cherry picked from commit f300e11b056dea414d7d77bbc6e5a7dc5d9ddd41)
[1] https://nixos.org/manual/nixos/stable/options.html#opt-nix.checkConfig
[2] I should add that I don't use the "official" ways of installing Lix
because using the flake directly and callPackaging it seemed to fit
better into my workflow: I already have a little mess to make
sure Hydra from the flake uses the correct pkgs.nix and I didn't
want to complicate it further while keeping a single package-set I
can build in CI. Don't get me wrong, I think such a module for a
quick-start is very important, just giving context on why I bother
in the first place :)
[3] When we go public, I think it's worth considering to add support in
nixpkgs itself for Lix.
Change-Id:
|
||
---|---|---|
.. | ||
better-errors-in-nix-repl.md | ||
debugger-locals-for-let-expressions.md | ||
debugger-on-trace.md | ||
drop-vendored-toml11.md | ||
drv-string-parse-hang.md | ||
dup-attr-errors.md | ||
empty-search-regex.md | ||
enter-debugger-more-reliably-in-let-and-calls.md | ||
env-size-reduction.md | ||
eval-system.md | ||
forbid-nested-debuggers.md | ||
formal-order.md | ||
inherit-error-positions.md | ||
inherit-from-by-need.md | ||
leading-period.md | ||
new-assertions.md | ||
nix-config-show.md | ||
nix-env-json-drv-path.md | ||
nix-flake-check-logs-actions.md | ||
nix-flake-update-ux.md | ||
nix-profile-names.md | ||
nixversion-fake.md | ||
no-cache-eval-errors.md | ||
print-value-in-coercion-error.md | ||
print-value-in-type-error.md | ||
reduce-debugger-clutter.md | ||
repl-doc-command.md | ||
repl-overlays.md | ||
short-expr-flag.md | ||
source-location-in-while-evaluating-attribute.md | ||
source-positions-in-errors.md | ||
stack-overflow-segfaults.md | ||
upgrade-nix-override.md | ||
upgrade-nix-profile-compat.md | ||
upstart-removal.md | ||
with-error-reporting.md |