nix: Add a passthrough non-overlayFS derivation to buildFHSEnvOverlay#188
Open
hcallahan-lowrisc wants to merge 1 commit into
Open
nix: Add a passthrough non-overlayFS derivation to buildFHSEnvOverlay#188hcallahan-lowrisc wants to merge 1 commit into
hcallahan-lowrisc wants to merge 1 commit into
Conversation
This adds an attribute to the output set <name>.hermetic which constructs a near-identical FHSEnv except using the upstream nixpkgs implementation of buildFHSEnv directly. This is intended as a debugging tool for assessing if the overlayFS-based environment builder is still required, and to comparatively debug some runtime failures which I suspect are down to leakage of the host system environment (when running Nix on e.g. Ubuntu) into the shell. The original intent of the overlayFS based shell was to improve the developer experience on non-NixOS systems by allowing more of the user's base system to propogate into the devShell for convenience. If this is a source of breakage that does not have other workarounds, or is a repeat offender for new breakage, I want to assess going forward if it is truly needed. Signed-off-by: Harry Callahan <hcallahan@lowrisc.org>
589ee16 to
f38552b
Compare
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 adds an attribute to the output set
<name>.hermeticwhich constructs a near-identical FHSEnv except using the upstream nixpkgs implementation of buildFHSEnv directly.This is intended as a debugging tool for assessing if the overlayFS-based environment builder is still required, and to comparatively debug some runtime failures which I suspect are down to leakage of the host system environment (when running Nix on e.g. Ubuntu) into the shell. The original intent of the overlayFS based shell was to improve the developer experience on non-NixOS systems by allowing more of the user's base system to propogate into the devShell for convenience. If this is a source of breakage that does not have other workarounds, or is a repeat offender for new breakage, I want to assess going forward if it is truly needed.
Related to #168