feat: add lib.fetchurl function #27
No reviewers
Labels
No labels
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/labs#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "srxl/labs:fetchurl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See comment in
tidepool/src/lib/fetchurl.nixfor details on rationale.I've made this a function in
libinstead of defining this as a builder, since we don't have a great mechanism at the moment for specifying the source of a package as another package. We'll need to tackle this eventually, but given that this is a bit of a special case in that it's only intended to be used to fetch sources during bootstrap, I think it's fine to just have this be a function that returns a derivation, instead of being a full builder. Open to other opinions, though.lgtm, we should also convert to use sri hash in
hash = ...instead ofsha256 = ...definitely still discussion to be had about what builders/capabilities should cover
Was considering swapping the hashes over - I can do that in this PR if we'd like?
Went ahead and did the conversion. Was simple enough.
perfect, thanks!
I'd like to revert these changes in favor of moving the builtin fetchers to
libsince they aren't really a part of the package set.