fix(3p): Move away from builtins.fetchGit
Moves to the derivation-based git fetchers everywhere in third-party. This might help with forward-compatibility with newer Nix versions, though that's not our primary concern right now. Change-Id: I565bb72585b8639893e9ea3a9e233338aede63a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3903 Tested-by: BuildkiteCI Reviewed-by: zseri <zseri.devel@ytrizja.de>
This commit is contained in:
parent
1d281151de
commit
1c81ccb996
17 changed files with 71 additions and 36 deletions
|
@ -1,10 +1,12 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/crypto";
|
||||
src = builtins.fetchGit {
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/crypto";
|
||||
rev = "e9b2fee46413994441b28dfca259d911d963dfed";
|
||||
hash = "sha256:18sz5426h320l9gdll9n43lzzxg2dmqv0s5fjy6sbvbkkpjs1m28";
|
||||
};
|
||||
|
||||
deps = with depot.third_party; [
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/net";
|
||||
src = builtins.fetchGit {
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/net";
|
||||
rev = "c0dbc17a35534bf2e581d7a942408dc936316da4";
|
||||
hash = "sha256:1f1xqh2cvr629fkg9n9k347vf6g91jkrsmgmy8hlqdrq163blb54";
|
||||
};
|
||||
|
||||
deps = with depot.third_party; [
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/oauth2";
|
||||
src = builtins.fetchGit {
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/oauth2";
|
||||
rev = "858c2ad4c8b6c5d10852cb89079f6ca1c7309787";
|
||||
hash = "sha256:1dc7n8ddph8w6q0i3cwlgvjwpf2wlkx407va1ydnazasi1j5ixrw";
|
||||
};
|
||||
|
||||
deps = with depot.third_party; [
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/sys";
|
||||
src = builtins.fetchGit {
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/sys";
|
||||
rev = "ac6580df4449443a05718fd7858c1f91ad5f8d20";
|
||||
hash = "sha256:14gvx65w5lddi20s4wypbbvbg9ni3m8777jhp9nqxhixc61k3dyi";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/text";
|
||||
src = builtins.fetchGit {
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/text";
|
||||
rev = "cbf43d21aaebfdfeb81d91a5f444d13a3046e686";
|
||||
hash = "sha256:1h6z2x4ijzd1126zk3lf8f3bp98j1irs7xg6p8nwpymkqkw5laq8";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ depot, ... }:
|
||||
{ depot, pkgs, ... }:
|
||||
|
||||
depot.nix.buildGo.external {
|
||||
path = "golang.org/x/time";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://go.googlesource.com/time";
|
||||
rev = "555d28b269f0569763d25dbe1a237ae74c6bcc82";
|
||||
hash = "sha256:1rhl4lyz030kwfsg63yk83yd3ivryv1afmzdz9sxbhcj84ym6h4r";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue