-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
fetchers: uniformly support the hash
attribute
#342173
Conversation
|
ae68fc7
to
3ee66db
Compare
Result of 1 package built:
|
Also updated the corresponding |
3cdc7b7
to
c584b28
Compare
Forgot to update this PR after renaming the |
Also dropped the `md5` attribute, as `stdenv.mkDerivation` rejects MD5 since last year (87c2210)
c584b28
to
7c19bb3
Compare
Result of 7 packages built:
|
Result of 8 packages built:
|
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.
A couple One curious question.
, outputHash | ||
, outputHashAlgo |
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.
Others have defaults of lib.fakeHash
and null
here; why did this one get no default?
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.
Because the fetcher was throwing without a hash set, so I preserved that behaviour.
PS: Sorry for getting back to you so late, I missed the “new message in issue/PR” thing as I was using a view filtered for open ones
Description of changes
Went through
pkgs/buildsupport/fetch*
and adapted fetchers as necessary, to support thehash
attribute; see #325892.Also updated some packages to use the
hash
attribute, as working examples.This is a follow-up on #342072 and includes its commits.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
nixpkgs-review
Add a 👍 reaction to pull requests you find important.