Skip to content

Conversation

@corngood
Copy link
Contributor

@corngood corngood commented Dec 5, 2025

I think this became a problem with:

NixOS/nix@ffbc33f

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@corngood corngood requested a review from Ericson2314 December 5, 2025 19:35
@ofborg ofborg bot added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Dec 5, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Dec 5, 2025
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you send the same diff to upstream Nix?

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 5, 2025
@corngood corngood marked this pull request as draft December 5, 2025 19:57
@corngood corngood marked this pull request as ready for review December 5, 2025 20:00
@corngood
Copy link
Contributor Author

corngood commented Dec 5, 2025

Can you send the same diff to upstream Nix?

There was already something like this upstream, so I tried to match it as closely as possible, while keeping the versioning support.

@Ericson2314
Copy link
Member

Ericson2314 commented Dec 5, 2025

I think this might require staging though?

(lib.mesonEnable "seccomp-sandboxing" stdenv.hostPlatform.isLinux)
(lib.mesonBool "embedded-sandbox-shell" embeddedSandboxShell)
]
++ lib.optional (lib.versionAtLeast (lib.versions.majorMinor version) "2.33") (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh haha tricky, nice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That option got renamed at the same time and doesn't exist before 2.33, so I thought this was best.

@Ericson2314 Ericson2314 added this pull request to the merge queue Dec 5, 2025
Merged via the queue into NixOS:master with commit d38ebcc Dec 5, 2025
26 of 30 checks passed
@corngood-bot
Copy link

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 468205
Commit: c927d0e21cc4061d8da80a6de2c4cf5d311be3ae (subsequent changes)
Merge: 5b88f3fa2375286e570b2e8bd935d880365e3af7

Logs: https://github.com/corngood/nixpkgs-review-gha/actions/runs/19974520057


x86_64-linux

❌ 1 package failed to build:
  • devenv
✅ 4 packages built:
  • nixVersions.git
  • nixVersions.git.dev
  • nixVersions.git.doc
  • nixVersions.git.man

aarch64-linux

❌ 1 package failed to build:
  • devenv
✅ 4 packages built:
  • nixVersions.git
  • nixVersions.git.dev
  • nixVersions.git.doc
  • nixVersions.git.man

x86_64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • devenv
✅ 4 packages built:
  • nixVersions.git
  • nixVersions.git.dev
  • nixVersions.git.doc
  • nixVersions.git.man

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • devenv
✅ 4 packages built:
  • nixVersions.git
  • nixVersions.git.dev
  • nixVersions.git.doc
  • nixVersions.git.man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants