Skip to content

Conversation

@k9ert
Copy link
Contributor

@k9ert k9ert commented Sep 7, 2025

fixes #295 and #296

  • created flake.nix and updated shell.nix. Both now use nixpkgs 22.05 which effectively pins the dependencies, especially gcc-arm-embedded-9 which is even no longer available on a recent nixpkgs
  • Updated development.md and build.md
  • Created a github-actions workflow which is building the unix and disco target after installing the dependencies via the flake. The binaries are uploaded and are available 90 days. The workflow kicks in for PRs to main/master and merges to main/master.

We're not using the newest dependencies from nix here, as on the main branch, we're currently dependent on the gcc-arm-embedded-9 which is no longer available in 25.05.
We're pretty behind! However, Mike is currently bringing all the dependencies up to date in
#304 and there we'll pin to the latest version.

@netlify
Copy link

netlify bot commented Sep 7, 2025

Deploy Preview for specter-diy-docs ready!

Name Link
🔨 Latest commit a9e5037
🔍 Latest deploy log https://app.netlify.com/projects/specter-diy-docs/deploys/68e421fb72c398000850ba98
😎 Deploy Preview https://deploy-preview-307--specter-diy-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k9ert k9ert force-pushed the kn/nix_fix branch 2 times, most recently from 76a401b to e1f8a8e Compare September 7, 2025 17:08
@polto
Copy link
Contributor

polto commented Sep 7, 2025

Really nice ! tried from the kn/nix_fix Branch. works well !! I tested the simulator only for now.

The reproducible builds can also benefit from flake with pined dependencies to replace the docker with debian image.

Copy link
Contributor

@ubbabeck ubbabeck left a comment

Choose a reason for hiding this comment

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

I left a review regarding the nix flake and shell.nix. I can help with the shell.nix if you wish.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think shell.nix can use the flake.nix instead of defining the dependencies twice, if you wish to support the nix-shell command.

Copy link
Contributor

@ubbabeck ubbabeck left a comment

Choose a reason for hiding this comment

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

Added how to not having to define the dependencies twice.

k9ert and others added 2 commits September 8, 2025 17:22
Co-authored-by: Ruben <[email protected]>
Co-authored-by: Ruben <[email protected]>
@k9ert
Copy link
Contributor Author

k9ert commented Sep 11, 2025

Thanks Mike! At least we've tested the github workflow with this as well. I also tested locally make unix and disco. Works now!

@k9ert k9ert requested a review from miketlk September 11, 2025 07:35
@k9ert k9ert requested a review from 3rdIteration October 6, 2025 20:06
Copy link
Contributor

@miketlk miketlk left a comment

Choose a reason for hiding this comment

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

Haven't tested but looks good to me.

@k9ert k9ert merged commit ce35419 into master Oct 7, 2025
6 checks passed
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.

Build broken with MacOS Sonoma 14.5

6 participants