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

libexpr/fetchurl.nix: allow __impure fetch #7052

Merged
merged 4 commits into from Sep 16, 2022
Merged

libexpr/fetchurl.nix: allow __impure fetch #7052

merged 4 commits into from Sep 16, 2022

Conversation

ghost
Copy link

@ghost ghost commented Sep 16, 2022

This commit adds an optional __impure parameter to fetchurl.nix, which allows the caller to use libfetcher's fetcher in an impure derivation. This allows nixpkgs' patch-normalizing fetcher (fetchpatch) to be rewritten to use nix's internal fetchurl, thereby eliminating the awkward "you can't use fetchpatch here" banners scattered all over the place.

See also: NixOS/nixpkgs#188587

This commit adds an optional `__impure` parameter to fetchurl.nix, which allows
the caller to use `libfetcher`'s fetcher in an impure derivation.  This allows
nixpkgs' patch-normalizing fetcher (fetchpatch) to be rewritten to use nix's
internal fetchurl, thereby eliminating the awkward "you can't use fetchpatch
here" banners scattered all over the place.

See also: NixOS/nixpkgs#188587
@ghost ghost marked this pull request as ready for review September 16, 2022 08:18
@ghost ghost mentioned this pull request Sep 16, 2022
src/libexpr/fetchurl.nix Outdated Show resolved Hide resolved
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
@edolstra
Copy link
Member

Can you add this to the release notes?

@ghost ghost requested a review from edolstra September 16, 2022 08:59
@edolstra edolstra merged commit a38a55b into NixOS:master Sep 16, 2022
@ghost ghost deleted the pr/fetch/impure branch September 16, 2022 17:41
Minion3665 pushed a commit to Minion3665/nix that referenced this pull request Feb 23, 2023
libexpr/fetchurl.nix: allow __impure fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant