Skip to content

Commit

Permalink
fix(nix): hotfix for netrc support in curl in nix
Browse files Browse the repository at this point in the history
To be reverted once fix lands on stable channel.

See NixOS/nixpkgs#356114
  • Loading branch information
diogotcorreia committed Nov 20, 2024
1 parent 8d52168 commit b682341
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions overlays/nix.nix
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;
});
}

0 comments on commit b682341

Please sign in to comment.