3p: patch go so that things work again
This commit is contained in:
parent
eea7e9ad65
commit
6d7ef7de57
2 changed files with 22 additions and 1 deletions
21
third_party/default.nix
vendored
21
third_party/default.nix
vendored
|
@ -31,6 +31,27 @@ let
|
|||
nixpkgs = import ./nixpkgs {
|
||||
inherit system;
|
||||
config = nixpkgsConfig;
|
||||
overlays = [(final: prev: {
|
||||
go_1_20_socket = prev.go_1_20.overrideAttrs (old: {
|
||||
patches = old.patches ++ [(final.fetchpatch {
|
||||
url = "https://go.googlesource.com/go/+/ad087ee2804b7ce088161df04403c93ddc623888%5E%21?format=TEXT";
|
||||
sha256 = "14z1rgn2qhmzhk9b8iksdknzrf0fbbhabqngcz5jlskc8vwdd14v";
|
||||
decode = "base64 -d";
|
||||
})];
|
||||
});
|
||||
vault = prev.vault.override {
|
||||
buildGoModule = prev.buildGoModule.override {
|
||||
go = final.go_1_20_socket;
|
||||
};
|
||||
};
|
||||
go_1_19_socket = prev.go_1_19.overrideAttrs (old: {
|
||||
patches = old.patches ++ [(final.fetchpatch {
|
||||
url = "https://go.googlesource.com/go/+/ad087ee2804b7ce088161df04403c93ddc623888%5E%21?format=TEXT";
|
||||
sha256 = "14z1rgn2qhmzhk9b8iksdknzrf0fbbhabqngcz5jlskc8vwdd14v";
|
||||
decode = "base64 -d";
|
||||
})];
|
||||
});
|
||||
})];
|
||||
};
|
||||
crate2nixSrc = nixpkgs.fetchFromGitHub {
|
||||
owner = "kolloch";
|
||||
|
|
2
third_party/tvl/nix/buildGo/default.nix
vendored
2
third_party/tvl/nix/buildGo/default.nix
vendored
|
@ -24,7 +24,7 @@ let
|
|||
toString;
|
||||
|
||||
inherit (pkgs) lib runCommand runCommandCC fetchFromGitHub protobuf symlinkJoin;
|
||||
go = pkgs.go_1_19;
|
||||
go = pkgs.go_1_19_socket;
|
||||
|
||||
# Helpers for low-level Go compiler invocations
|
||||
spaceOut = lib.concatStringsSep " ";
|
||||
|
|
Loading…
Reference in a new issue