Skip to content

{earbuds,espanso,evebox,elmPackages.elm-test-rs}: use fetchCargoVendor - #388183

Merged
FliegendeWurst merged 4 commits into
NixOS:masterfrom
TomaSajt:cargo-lockfile-cleaning-e
Mar 9, 2025
Merged

FliegendeWurst merged 4 commits into
NixOS:masterfrom
TomaSajt:cargo-lockfile-cleaning-e

Conversation

@TomaSajt

@TomaSajt TomaSajt commented Mar 8, 2025

Copy link
Copy Markdown
Contributor

This PR migrates a few packages to use fetchCargoVendor.

There have been previous attempts at migrating larger chunks of packages, but I believe smaller chunks are more reviewable.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 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. labels Mar 8, 2025
@felbinger

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 388183

Logs: https://github.com/felbinger/nixpkgs-review-gha/actions/runs/13739065089


x86_64-linux

✅ 5 packages built:
  • earbuds
  • elmPackages.elm-test-rs
  • espanso
  • espanso-wayland
  • evebox

aarch64-linux

✅ 5 packages built:
  • earbuds
  • elmPackages.elm-test-rs
  • espanso
  • espanso-wayland
  • evebox

x86_64-darwin

⏩ 1 package marked as broken and skipped:
  • evebox
✅ 2 packages built:
  • elmPackages.elm-test-rs
  • espanso

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • evebox
✅ 2 packages built:
  • elmPackages.elm-test-rs
  • espanso

@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Mar 8, 2025
@n8henrie

n8henrie commented Mar 8, 2025

Copy link
Copy Markdown
Contributor

For espanso on aarch64-darwin, I'm running into #385366 unless I relax my sandbox. With a relaxed sandbox it builds.

@TomaSajt

TomaSajt commented Mar 8, 2025

Copy link
Copy Markdown
Contributor Author

Yes, it's a known issue (NIX_SSL_CERT_FILE is unreadable even though it is supposed to be). Sandbox relaxing is the current easiest workaround, as you have discovered.

Btw can you try running nix-build -A ffmpeg.src --check? (It has a fetchgit-based source).
In theory that also shouldn't work because of the aforementioned unreadable file.
I just want to double check that it happens for others too.

@n8henrie

n8henrie commented Mar 8, 2025

Copy link
Copy Markdown
Contributor

nix-build -A ffmpeg.src --check

From this PR? Or main nixpkgs/master?

@TomaSajt

TomaSajt commented Mar 8, 2025

Copy link
Copy Markdown
Contributor Author

Any nixpkgs revision, but this PR is fine to.

@FliegendeWurst
FliegendeWurst merged commit 52f9bd6 into NixOS:master Mar 9, 2025
@TomaSajt
TomaSajt deleted the cargo-lockfile-cleaning-e branch April 24, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants