Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: fix and improve some srcs #391262

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

oxij
Copy link
Member

@oxij oxij commented Mar 19, 2025

This fixes some source-related build failures I noticed while building nixpkgs without using cache.nixos.org, and then adds some related improvements on top, to make these particular issues less likely in the future.

Things done

  • Built on platform(s)
    • x86_64-linux
  • With
    • sandbox = true
  • This should be a noop, since no hashes change.
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Contributor

@drupol drupol left a comment

Choose a reason for hiding this comment

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

How about replacing sha256 with hash where it is relevant too then ?

@oxij
Copy link
Member Author

oxij commented Mar 19, 2025

Well, I'd say it's out of scope of this, since this PR specifically on purpose does not touch any hashes.

@drupol
Copy link
Contributor

drupol commented Mar 19, 2025

Just replacing the attribute, not its value, and only where it makes sense. And this is in the scope of "improving some src" since the attribute sha256 is part of the srcs.

e.g.: in pkgs/by-name/m1/m17n_db/package.nix

…ible

... but only when it does not require editing the hash itself, i.e.,  keeping
non-`base64` hashes as-is.
@oxij
Copy link
Member Author

oxij commented Mar 19, 2025

Done for all base64 hashes.

@oxij oxij force-pushed the tree/fix-sources branch from 5dbfa2b to 616ca0c Compare March 19, 2025 18:20
@oxij
Copy link
Member Author

oxij commented Mar 20, 2025 via email

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Mar 20, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/2314

@oxij oxij force-pushed the tree/fix-sources branch from 616ca0c to c403ab6 Compare March 23, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) 6.topic: python 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants