## Description
nixpkgs turned the `xorg` set into a warning alias, thus
`scripts/nix/default.nix` printed `'xorg.libX11' has been renamed to
'libx11'` on every evaluation.
This takes the top-level `libx11` instead.
`libX11` exists at the top level too, but only as an alias, so `libx11`
is the name that stays.
## User-facing changes (Release notes)
n/a
## Additional notes
Checked against current nixos-unstable, evaluates without the warning.
## Description
Remove `x86_64-darwin` (Intel Mac) from the Nix flake's supported
systems because nixos-unstable after 26.05 has dropped support for this
platform, causing evaluation to fail.
This removes Intel Mac outputs from `packages`, `legacyPackages`, and
`devShells`. Apple Silicon Mac support remains available through
`aarch64-darwin`.
Also update `flake.lock` to refresh the `nixpkgs` and `rust-overlay`
inputs.
## User-facing changes (Release notes)
Removed Intel Mac (`x86_64-darwin`) support from the Nushell Nix flake
following its removal from upstream Nixpkgs. Apple Silicon Macs remain
supported.
## Description
#18968 bumped `rust-toolchain.toml` to 1.96.1,
but the `rust-overlay` rev locked in `scripts/nix/flake.lock` predates that release,
so `fromRustupToolchainFile` fails with `error: Stable 1.96.1 is not available` and the flake will not evaluate.
Bumps `rust-overlay` `4a408e1` -> `6ae57a7`, lock file only.
`nixpkgs` left alone, since nothing forces it.
Checked on `x86_64-linux`: the toolchain resolves to `rust-default-1.96.1` and the default package evaluates again.
## User-facing changes (Release notes)
n/a, only affects building from the flake in `scripts/nix`.
## Additional notes
Follow-up to #18968.
Updating nixpkgs
Latest devshell variant can be used with either:
* using nix directly: `nix develop ./scripts/nix#latest`
* using direnv: `"use flake ./scripts/nix#latest" | save -f .envrc`
---
Probably something that I should make a PR for whenever a release is
coming up.
## Release notes summary - What our users need to know
## Tasks after submitting
- [ ] Update the
[documentation](https://github.com/nushell/nushell.github.io)
I saw #10945 and added some notes in the `scripts/nix/README.md` file on
how to use it properly in the non-root directory. Closes#10352.
---
Allows including in another flake using the `...?dir=scripts/nix` option
on the flake url. Some common uses in the repo:
```console
$ # Build nushell
$ nix build ./scripts/nix
$ # Enter the development shell (sadly it's bash, use .envrc for nu)
$ nix develop ./scripts/nix
$ # Enable direnv for this project
$ "use flake ./scripts/nix" | save -a ./.envrc
```
Everything else should be nicely extracted from the
`rust-toolchain.toml` and `Cargo.toml`s around the repo, making changes
outside the nix directory require almost no intervention, unless
dependencies change or a new plugin is added.
---
<!--
Thank you for improving Nushell!
Please, read our contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md
-->
## Release notes summary - What our users need to know
<!--
This section will be included as part of our release notes. See the
contributing guide for more details.
Please include only details relevant for users here. Motivation and
technical details can be added above or below this section.
You may leave this section blank until your PR is finalized. Ask a core
team member if you need help filling this section.
-->
## Tasks after submitting
<!-- Remove any tasks which aren't relevant for your PR, or add your own
-->
- [ ] Update the
[documentation](https://github.com/nushell/nushell.github.io)