Skip to content

fetchFromRadicle: simplify#495576

Closed
prusnak wants to merge 3 commits intoNixOS:masterfrom
prusnak:radicle-simplify
Closed

fetchFromRadicle: simplify#495576
prusnak wants to merge 3 commits intoNixOS:masterfrom
prusnak:radicle-simplify

Conversation

@prusnak
Copy link
Copy Markdown
Member

@prusnak prusnak commented Mar 1, 2026

  • harmless refactor to simplify fetchFromRadicle usage across nixpkgs

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.

@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. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) 8.has: documentation This PR adds or changes documentation labels Mar 1, 2026
lib.makeOverridable (
{
seed,
seed ? "seed.radicle.xyz",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We intentionally didn't specify a default value here, see #434360 (comment)

{
seed,
seed ? "seed.radicle.xyz",
explorer ? "app.radicle.xyz",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is irrelevant for the fetcher

Comment on lines +68 to +69
homepage = finalAttrs.src.homeUrl;
changelog = "${finalAttrs.src.homeUrl}/tree/NEWS.md";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMO we should never refer to finalAttrs.src here because src is often overridden with something which doesn't have the attrs you are using or something which isn't an attrset at all (e.g. a path to a local dir), so in these cases evaluation would fail here.

@prusnak
Copy link
Copy Markdown
Member Author

prusnak commented Mar 1, 2026

Ok, closing

@prusnak prusnak closed this Mar 1, 2026
@prusnak prusnak deleted the radicle-simplify branch March 1, 2026 19:18
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, ...) 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants