-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Conversation
Result of 1 package built:
|
homepage = "https://entropymine.com/imageworsener/"; | ||
changelog = "${finalAttrs.src.meta.homepage}/blob/${finalAttrs.src.rev}/changelog.txt"; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
Need to review #277994 before I feel confident about merging this. |
c1aad9e
to
d814b1c
Compare
d814b1c
to
8e484a4
Compare
Removed the use of |
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
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.