-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nix): hotfix for netrc support in curl in nix
To be reverted once fix lands on stable channel. See NixOS/nixpkgs#356114
- Loading branch information
1 parent
8d52168
commit b682341
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Hot fix for curl in nix breaking with netrc | ||
# https://github.com/NixOS/nixpkgs/pull/356133 | ||
{...}: final: prev: let | ||
patched-curl = prev.curl.overrideAttrs (oldAttrs: { | ||
patches = (oldAttrs.patches or []) ++ [ | ||
# https://github.com/curl/curl/issues/15496 | ||
(prev.fetchpatch { | ||
url = "https://github.com/curl/curl/commit/f5c616930b5cf148b1b2632da4f5963ff48bdf88.patch"; | ||
hash = "sha256-FlsAlBxAzCmHBSP+opJVrZG8XxWJ+VP2ro4RAl3g0pQ="; | ||
}) | ||
# https://github.com/curl/curl/issues/15513 | ||
(prev.fetchpatch { | ||
url = "https://github.com/curl/curl/commit/0cdde0fdfbeb8c35420f6d03fa4b77ed73497694.patch"; | ||
hash = "sha256-WP0zahMQIx9PtLmIDyNSJICeIJvN60VzJGN2IhiEYv0="; | ||
}) | ||
]; | ||
}); | ||
in { | ||
nix = prev.nix.override (old: { | ||
curl = patched-curl; | ||
}); | ||
} |