Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] added nix flake #136

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isubasinghe
Copy link

Waiting on adding support for macOS in the nixified compiler here:
https://github.com/isubasinghe/arm-gcc-binutils

@wucke13
Copy link
Contributor

wucke13 commented Jun 14, 2024

@isubasinghe Please take a look on https://github.com/DLR-FT/seL4-nix-utils. I think I did (almost?) all the work you intend to do here.

@isubasinghe
Copy link
Author

Thanks for letting me know @wucke13, in that case I will create some PRs there for anything missing there.

@wucke13
Copy link
Contributor

wucke13 commented Jun 18, 2024

@isubasinghe Great, I'm looking forward to your contributions 😄. I might suggest you close this PR then, if I understand correctly it will not be pursued further in the near future?

outputs = { self, nixpkgs, rust-overlay, ... }@inputs: inputs.utils.lib.eachSystem [
# Add the system/architecture you would like to support here. Note that not
# all packages in the official nixpkgs support all platforms.
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
"x86_64-linux" "aarch64-linux" "x86_64-darwin"

@Ivan-Velickovic
Copy link
Collaborator

Ivan-Velickovic commented Jul 8, 2024

@isubasinghe Great, I'm looking forward to your contributions 😄. I might suggest you close this PR then, if I understand correctly it will not be pursued further in the near future?

I could not find how to get started with https://github.com/DLR-FT/seL4-nix-utils and we need something simple/quick for the Microkit CI so I think I might merge this since it's mostly ready. It's only ~100 lines so I think it's fine to have here on it's own. For building more than just a specific project like the Microkit it seems better to use your approach but this is mainly for CI purposes.

@wucke13
Copy link
Contributor

wucke13 commented Jul 8, 2024

As you like. If I can be of any help, i.e. explaining the stuff from our repo, please let me know.

Edit:

I could not find how to get started with https://github.com/DLR-FT/seL4-nix-utils

Maybe a short note on that: nix flake show will provide all outputs. Of importance for you is the nix build .#microkit-sdk which would build the sdk and symlink the result to a result symlink in your PWD, or nix develop .#microkit-sdk to get a full development environment including the SDK, cross compiler, bintools and QEMU. For this development environment the MICROKIT_SDK env var is already set to the absolute path where the SDK is located. The microkit-sdk development environment available from nix develop is however based of the binary release of the microkit-sdk from the tutorial for historical reasons. It will eventually be upgrade to the source-built microkit package.

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.

3 participants