update download location
This commit is contained in:
parent
4e3956a4af
commit
8727d4a21c
3 changed files with 944 additions and 944 deletions
14
flake.nix
14
flake.nix
|
@ -50,7 +50,7 @@
|
|||
pname = pname;
|
||||
version = version;
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://storage.googleapis.com/kubernetes-release/release/v${version}/bin/linux/${arch}/${pname}";
|
||||
url = "https://dl.k8s.io/release/${version}/bin/linux/${arch}/${pname}";
|
||||
sha256 = hashes.${pname}.${arch}.${version};
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
|
@ -67,12 +67,12 @@
|
|||
install $src -m 0555 $out/bin/${pname}
|
||||
$postInstall
|
||||
'';
|
||||
# postFixup = ''
|
||||
# installShellCompletion --cmd ${pname} \
|
||||
# --bash <($out/bin/${pname} completion bash) \
|
||||
# --fish <($out/bin/${pname} completion fish) \
|
||||
# --zsh <($out/bin/${pname} completion zsh)
|
||||
# '';
|
||||
postFixup = ''
|
||||
installShellCompletion --cmd ${pname} \
|
||||
--bash <($out/bin/${pname} completion bash) \
|
||||
--fish <($out/bin/${pname} completion fish) \
|
||||
--zsh <($out/bin/${pname} completion zsh)
|
||||
'';
|
||||
};
|
||||
in {
|
||||
apps = {
|
||||
|
|
|
@ -51,7 +51,7 @@ for pname in ["kubeadm", "kubectl", "kubelet"]:
|
|||
version = f"{major}.{minor}.{patch}"
|
||||
if version in hashes[pname][arch]:
|
||||
continue
|
||||
url = f"https://storage.googleapis.com/kubernetes-release/release/v{version}/bin/linux/{arch}/{pname}" # noqa E501
|
||||
url = f"https://dl.k8s.io/release/{version}/bin/linux/{arch}/{pname}" # noqa E501
|
||||
r = requests.get(url)
|
||||
hash = "sha256-" + base64.b64encode(
|
||||
hashlib.sha256(r.content).digest()
|
||||
|
|
1872
hashes.json
1872
hashes.json
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue