Skip to content

propagatedSandboxProfile does not appear to propagate #237458

@reckenrode

Description

@reckenrode

Describe the bug

While working on #234122, I attempted to use propagatedSandboxProfile in the qt5.qtbase derivation. Unfortunately, it did not appear to propagate to qtpass or other Qt-using packages that would require the profile. They still experienced the error until I manually added sandbox profiles to the other packages.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add a propagatedSandboxProfile to a package for something it needs (e.g., qt5.qtbase).
  2. Use that package as a buildInput or nativeBuildInput to another package (e.g., qtpass).
  3. Build the other package.

Expected behavior

The build should succeed (allowing whatever is permitted by the profile), but it fails (due to the lack of the sandbox profile).

Screenshots

n/a

Additional context

This requires the sandbox on Darwin to be set to true or relaxed.

Notify maintainers

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions