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

release-common: use shell from nixpkgs, provide fallback for compat #1843

Merged
merged 1 commit into from Feb 6, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Feb 5, 2018

Somewhat of an alternative to #1842.

Instead of maintaining two definitions of "basic static shell sufficient to be used as /bin/sh"
(which may change moving forward across nixpkgs versions)
have the nixpkgs we're building against define what this means and use that by default.

As a fallback provide our own definition, which this PR leaves alone but we may want to one-time
update to include the changes in #1842 .

Hopefully this avoids having to update this in two places, as well as somewhat making things slightly
forward-compatible should nixpkgs change what we use for our basic shell.

This relies on https://github.com/dtzWill/nixpkgs/tree/feature/busybox-sandbox-shell which I haven't issued a PR for yet.

Does this seem like an improvement / good way to go?

@dtzWill
Copy link
Member Author

dtzWill commented Feb 5, 2018

We may want to change the attribute name to something less busybox-centric, leaving open use of dash or static bash or something.

@edolstra
Copy link
Member

edolstra commented Feb 6, 2018

Looks good to me.

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.

None yet

3 participants