Skip to content

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

Closed

Description

@viric

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.

Activity

  1. shlevy commented on Jun 7, 2012

    @shlevy
    Member

    +1

  2. added a commit that references this issue on Apr 25, 2017
  3. added a commit that references this issue on Aug 28, 2020
  4. added a commit that references this issue on Jan 1, 2024
  5. added a commit that references this issue on Feb 26, 2025
  6. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions