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

imageworsener: modernize and fetch source from GitHub #325095

Merged
merged 6 commits into from
Jul 15, 2024

Conversation

emilazy
Copy link
Member

@emilazy emilazy commented Jul 6, 2024

Description of changes

It’s been a while since I was maintaining stuff, so get back into the swing of things a bit by tidying up a little leaf package of mine. No new version, though.

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

@ofborg ofborg bot requested a review from syvb July 6, 2024 19:33
@syvb
Copy link
Member

syvb commented Jul 7, 2024

Result of nixpkgs-review pr 325095 run on x86_64-linux 1

1 package built:
  • imageworsener

Comment on lines +75 to +76
homepage = "https://entropymine.com/imageworsener/";
changelog = "${finalAttrs.src.meta.homepage}/blob/${finalAttrs.src.rev}/changelog.txt";
Copy link
Member

Choose a reason for hiding this comment

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

I think this results in a changelog URL like https://entropymine.com/imageworsener/blob/6a43f725425bec281ccca7f5c690379c680e7fa2/changelog.txt, which 404s?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, because of the .src; a fetchFromGitHub’s homepage points to the GitHub repository, which is correct and reduces redundancy in the case that the repository information is changed or overridden:

emily@yuyuko ~/D/nixpkgs ((c1aad9eb))> nix eval .#imageworsener.meta.changelog
"https://github.com/jsummers/imageworsener/blob/1.3.5/changelog.txt"

Perhaps getting a little too clever, but I liked it :)

@emilazy emilazy marked this pull request as draft July 7, 2024 10:35
@emilazy
Copy link
Member Author

emilazy commented Jul 7, 2024

Need to review #277994 before I feel confident about merging this.

@emilazy emilazy force-pushed the push-puzpnylvpmuw branch from c1aad9e to d814b1c Compare July 8, 2024 17:24
@emilazy emilazy force-pushed the push-puzpnylvpmuw branch from d814b1c to 8e484a4 Compare July 8, 2024 17:26
@emilazy
Copy link
Member Author

emilazy commented Jul 8, 2024

Removed the use of finalAttrs.pname (although I think the $out/share/doc one might have actually been okay); this should be good to go now. The changelog definition really wants the meta.repository field, but that’s in limbo.

@emilazy emilazy marked this pull request as ready for review July 8, 2024 17:27
@ofborg ofborg bot requested a review from syvb July 8, 2024 18:13
@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one reputable person 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package labels Jul 8, 2024
@wegank wegank merged commit bf78abf into NixOS:master Jul 15, 2024
28 checks passed
@emilazy emilazy deleted the push-puzpnylvpmuw branch August 26, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 1 This PR was reviewed and approved by one reputable person 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants