Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3439 |
|
Thanks for merging @7c6f434c, much appreciated! 🙂 |
| src = fetchurl { | ||
| url = "${meta.homepage}/download/links-${version}.tar.bz2"; | ||
| sha256 = "sha256-IqqWwLOOGm+PftnXpBZ6R/w3JGCXdZ72BZ7Pj56teZg="; | ||
| url = "${finalAttrs.meta.homepage}/download/links-${finalAttrs.version}.tar.bz2"; |
There was a problem hiding this comment.
| url = "${finalAttrs.meta.homepage}/download/links-${finalAttrs.version}.tar.bz2"; | |
| url = "http://links.twibright.com/download/links-${finalAttrs.version}.tar.bz2"; |
using meta.homepage here is not very correct or future proof. If meta.homepage gets changed in the future this will likely be forgotten
There was a problem hiding this comment.
That makes sense, @SuperSandro, is this important enough to you, that you'd accept a PR for it or it is something that should rather be addressed with the next update to the package?
There was a problem hiding this comment.
feel free to make PR now, me or @SuperSandro2000 happy to have a look at it
There was a problem hiding this comment.
Sure thing, @kirillrdy, here's the PR: #289130
There was a problem hiding this comment.
If meta.homepage gets changed in the future this will likely be forgotten
Note that if the domain changes in the future, the URL 100% needs changing, but there is a chance that the URL structure is the same, so I am not sure how this cleanup can ever be useful.
There was a problem hiding this comment.
this is similar to #277994
for links2 its most likely that url and homepage will go in sync, but that's not the case for a lot of other derivations
eg homepage can change to be different domain but src remains on github, or sometimes they go backwards
Description of changes
finalAttrsinstead ofrecandhashinstead ofsha256implicit-intwarning to fix failing configurePhase thinking compiler is unable to produce binaries due toimplicit intbeing disallowed in C99 and above.libaviftobuildInputsto fix failing configurePhase due to avif.h header not being foundThings done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.