Skip to content

Doe this require sandbox? #246

@hmmh-dominik-saeume

Description

@hmmh-dominik-saeume

Hi,

im trying to use this inside docker, but due to the nature of it, sandbox is disabled.

when im trying to build, I get some xz sandbox errors, when using this overlay:

$ nix develop
warning: Git tree '/home/coder/test-on-dev-containers' is dirty
warning: input 'flake-utils' has an override for a non-existent input 'nixpkgs'
error: Cannot build '/nix/store/p0xpmksdmv45nwq0gbbzr87qk8k3ixad-cargo-1.92.0-x86_64-unknown-linux-gnu.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/vw32wi3x07jxbyqpy5bdpmqydrwlbjib-cargo-1.92.0-x86_64-unknown-linux-gnu
       Last 6 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/50aia9f2wqhn0sm5k14sqmyf9vdjwylr-cargo-1.92.0-x86_64-unknown-linux-gnu.tar.xz
       > xz: Failed to enable the sandbox
       > tar: This does not look like a tar archive
       > tar: Exiting with failure status due to previous errors
       > do not know how to unpack source archive /nix/store/50aia9f2wqhn0sm5k14sqmyf9vdjwylr-cargo-1.92.0-x86_64-unknown-linux-gnu.tar.xz
       For full logs, run:
         nix log /nix/store/p0xpmksdmv45nwq0gbbzr87qk8k3ixad-cargo-1.92.0-x86_64-unknown-linux-gnu.drv
error: Cannot build '/nix/store/0dbphqq65j92nspgk7n2nr0pz2yrp0n2-rust-minimal-1.92.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/3w2r8c28dmhcmnfj0j86md49m8ff9a0p-rust-minimal-1.92.0
error: Build failed due to failed dependency
error: Cannot build '/nix/store/x3b4qhjiy8klv5gkd5nrcxypkgmzmbik-nix-shell-env.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/x8ipyjmr50pas7kxyshdfzmlw92flcah-nix-shell-env
error: Build failed due to failed dependency
coder@Test:~/test-on-dev-containers$ nix log /nix/store/p0xpmksdmv45nwq0gbbzr87qk8k3ixad-cargo-1.92.0-x86_64-unknown-linux-gnu.drv
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/50aia9f2wqhn0sm5k14sqmyf9vdjwylr-cargo-1.92.0-x86_64-unknown-linux-gnu.tar.xz
xz: Failed to enable the sandbox
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
do not know how to unpack source archive /nix/store/50aia9f2wqhn0sm5k14sqmyf9vdjwylr-cargo-1.92.0-x86_64-unknown-linux-gnu.tar.xz

so yea, does this overlay require sandbox enabled? if yes, it would prolly be smart to add to the docs 👀

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