Skip to content

Commit

Permalink
fix: workaround curl netrc try again
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-qwt committed Nov 28, 2024
1 parent 26d988b commit 617d66f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
37 changes: 16 additions & 21 deletions lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,22 @@ rec {
(builtins.attrNames (builtins.readDir (self + "/packages")))));

# TODO https://github.com/NixOS/nixpkgs/pull/356133
nixVersions = prev.nixVersions.extend (
_: nPrev: {
nix_2_24_sysroot =
(nPrev.nix_2_24.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
./nix-local-overlay-store-regex.patch
];
})).override
{
# TODO(jared): delete when https://github.com/NixOS/nixpkgs/pull/356133 is on nixos-unstable
curl = final.curl.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(final.fetchpatch {
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/d508b59825a6c86aa0ba5eedc72042bfbe97e791/pkgs/by-name/cu/curlMinimal/fix-netrc-regression.patch";
hash = "sha256-/0MnDxsurz9BGhuf+57XXdWH0WKfexeRuKRD8deRl4Q=";
})
];
});
};
}
);
nix = prev.nix.override (old: {
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=";
})
];
});
});
};

packages = pkgs:
Expand Down
2 changes: 1 addition & 1 deletion modules/profiles/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in
};

nix = {
package = pkgs.nixVersions.stable;
# package = pkgs.nixVersions.stable;

registry.nixpkgs.flake = inputs.nixpkgs;
registry.myos.flake = self;
Expand Down

0 comments on commit 617d66f

Please sign in to comment.