Skip to content

libexpr/fetchurl.nix: allow __impure fetch#7052

Merged
edolstra merged 4 commits intomasterfrom
unknown repository
Sep 16, 2022
Merged

libexpr/fetchurl.nix: allow __impure fetch#7052
edolstra merged 4 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
@edolstra
Copy link
Copy Markdown
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