7 Commits
Author SHA1 Message Date
Martin Kronberger 86e6517abc fix(nix): take libx11 instead of the deprecated xorg set (#19181)
## 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.
2026-10-07 06:16:03 -05:00
Sha1rholder 3b08da67d1 chore: remove x86_64-darwin target in flake.nix (#19173)
## 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.
2026-10-06 18:06:31 +02:00
Kai Sforza d9f41fbf73 scripts/nix: Update the flake lock (#19038) 2026-09-16 11:42:36 -05:00
Martin Kronberger b763fe4122 fix(nix): bump rust-overlay so the 1.96.1 toolchain resolves (#18985)
## 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.
2026-09-08 15:32:46 +02:00
Ian Chamberlain 779e2473aa Fix nix flake build (rust toolchain + workspace package version) (#18330) 2026-06-02 15:28:03 -05:00
Kai Sforza 66f5bd23cc Update flake.lock, added latest devshell variant (#17084)
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)
2025-12-05 23:57:43 -08:00
Kai Sforza a59ac4dc70 Add nix flake to scripts/nix/ (#16848)
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)
2025-11-03 17:13:39 -08:00