Skip to content

Unbreak Nix#53

Open
timschumi wants to merge 3 commits intoOsirisRTOS:mainfrom
timschumi:nix-refresh
Open

Unbreak Nix#53
timschumi wants to merge 3 commits intoOsirisRTOS:mainfrom
timschumi:nix-refresh

Conversation

@timschumi
Copy link
Copy Markdown

For now.

We went past the locked Cargo version at some point, which now broke on
`include` statements.
DTC is needed to compile DTS files for the build-time device tree parser.
Nix does not necessarily have `bash` as `/bin/bash`.
Copilot AI review requested due to automatic review settings April 9, 2026 20:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Nix flake configuration to restore a working dev environment by adjusting how the kani package is selected, adding a missing tool, and refreshing pinned inputs.

Changes:

  • Switch kani selection to use pkgs.stdenv.hostPlatform.system in the devShell inputs.
  • Add dtc to the devShell tools.
  • Update flake.lock inputs (including kani, nix-tools, nixpkgs, and rust-overlay) and adjust the devcontainer pre-commit shebang.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
flake.nix Tweaks devShell dependencies: updates kani system selector and adds dtc.
flake.lock Refreshes pinned revisions/hashes for Nix inputs (notably kani, nix-tools, nixpkgs, rust-overlay).
.devcontainer/pre-commit.sh Changes shebang to /usr/bin/env bash for portability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to 2
#!/usr/bin/env bash
set -eoux pipefail
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set -eoux pipefail is likely not enabling pipefail as intended because -o requires an argument; when combined with subsequent flags (u/x) it can be parsed incorrectly, leaving pipefail as a positional parameter instead of an option. Consider switching to set -euxo pipefail (or set -euo pipefail plus a separate set -x) to ensure pipefail is actually set.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants