Make it easier to write nix files that depend on IncludeOS#2284
Merged
alfreb merged 4 commits intoincludeos:v0.16.0-releasefrom Sep 18, 2024
Merged
Make it easier to write nix files that depend on IncludeOS#2284alfreb merged 4 commits intoincludeos:v0.16.0-releasefrom
alfreb merged 4 commits intoincludeos:v0.16.0-releasefrom
Conversation
This adds vmrunner and chainloader to the IncludeOS overlay to make it easier to import them from the shell and unikernels. Also adds pkgs and pkgsStatic as shortcuts to the pinned nixpkgs + overlay. This allows some packages that don't require full direct access to nixpkgs to avoid importing the overlay (such as shell.nix or example.nix)
- add includeos to buildInputs to enable cmake find_package - use includeos overlay pointers to chainloader and vmrunner, use includeos.pkgs - remove now unused imports pkgs and nixpkgs - remove INCLUDEOS_VMRUNNER and INCLUDEOS_CHAINLOADER as they are no longer needed by vmrunner - inherit stdenv from overlay instead of setting CC/CXX manually - bash: add quotes around unikernel and buildpath
Contributor
|
Awesome!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(This PR depends on includeos/vmrunner#37, which removes the requirement for
INCLUDEOS_VMRUNNERandINCLUDEOS_CHAINLOADERfrom vmrunner.)An IncludeOS service can now be built with a very minimal nix derivation (see updated example.nix).
bonus: