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

In chroot builds, allow paths in chroot different than in / #24

Closed
viric opened this issue May 24, 2012 · 1 comment
Closed

In chroot builds, allow paths in chroot different than in / #24

viric opened this issue May 24, 2012 · 1 comment

Comments

@viric
Copy link
Member

viric commented May 24, 2012

With a syntax in nix.conf allowing lines like:
build-chroot-dirs = /bin=/mystatic/bin

this would allow to avoid having to include /bin and /lib into the chroot of the builds. I think most people expect the chroot builds to allow getting rid of /lib and /bin in the builds.

In that example, /mystatic/bin could include a single statically built 'sh', and that should be enough to run a build in a system where nixpkgs has a pure stdenv, without any base-system files in the chroot.

@shlevy
Copy link
Member

shlevy commented Jun 7, 2012

+1

edolstra added a commit that referenced this issue Apr 25, 2017
Fix handling of whitespace and ignore blank inputs.
meditans referenced this issue in Ericson2314/nix Aug 28, 2020
Structure content addresses in IPFS store
zolodev pushed a commit to zolodev/nix that referenced this issue Jan 1, 2024
…inning-nixpkgs

Tutorial on pinning nixpkgs
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

No branches or pull requests

3 participants