Add patch for nix to avoid rate limits

This commit is contained in:
Sandro - 2022-09-04 14:34:06 +02:00
parent 4ed53e3b0a
commit 351e0242f7
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 15 additions and 0 deletions

View File

@ -50,6 +50,21 @@ with final; {
mlat-client = prev.python3Packages.callPackage ./mlat-client.nix { };
nixVersions =
let
in
prev.nixVersions // {
stable = prev.nixVersions.stable.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [ ] ++ lib.optionals (lib.versionAtLeast prev.nixVersions.stable.version "2.9") [
# use github.com archive URL instead of api.github.com
(fetchpatch {
url = "https://github.com/NixOS/nix/pull/6997.patch";
sha256 = "sha256-JaQ6OY1RjxCYymkI/x0rmKH8XVXYs5psRwNJ4TPHPS0=";
})
];
});
};
pile = prev.callPackage ./pile.nix { };
pi-sensors = prev.callPackage ./pi-sensors { };