google-cloud-sdk: add components.json to the repository
This commit is contained in:
parent
48d8b7fe41
commit
1d3dbb45f2
4 changed files with 6913 additions and 18 deletions
6910
pkgs/tools/admin/google-cloud-sdk/components.json
Normal file
6910
pkgs/tools/admin/google-cloud-sdk/components.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -28,10 +28,5 @@
|
|||
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-397.0.0-linux-x86.tar.gz";
|
||||
sha256 = "1xw4jzl85didin26q9sg7j1pip4bmap5d0ac9ywbj0vni71mqx26";
|
||||
};
|
||||
components =
|
||||
{
|
||||
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/components-v397.0.0.json";
|
||||
sha256 = "1bm3z63lh0z8scfsvjxwvprbrbl5iciz6pbl1hkklxhbc0k9axbc";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ let
|
|||
data.googleCloudSdkPkgs.${system} or (throw "Unsupported system: ${system}");
|
||||
|
||||
components = callPackage ./components.nix {
|
||||
snapshotPath = builtins.fetchurl data.googleCloudSdkPkgs.components;
|
||||
snapshotPath = ./components.json;
|
||||
};
|
||||
|
||||
withExtraComponents = callPackage ./withExtraComponents.nix { inherit components; };
|
||||
|
|
|
@ -18,15 +18,6 @@ function genMainSrc() {
|
|||
echo " };"
|
||||
}
|
||||
|
||||
function genComponentsSrc() {
|
||||
local url="${CHANNEL_URL}/components-v${VERSION}.json"
|
||||
local sha256
|
||||
sha256=$(nix-prefetch-url "$url")
|
||||
echo " {"
|
||||
echo " url = \"${url}\";"
|
||||
echo " sha256 = \"${sha256}\";"
|
||||
echo " };"
|
||||
}
|
||||
{
|
||||
cat <<EOF
|
||||
# DO NOT EDIT! This file is generated automatically by update.sh
|
||||
|
@ -51,10 +42,9 @@ EOF
|
|||
echo " i686-linux ="
|
||||
genMainSrc "linux" "x86"
|
||||
|
||||
echo " components ="
|
||||
genComponentsSrc
|
||||
|
||||
echo " };"
|
||||
echo "}"
|
||||
|
||||
} >data.nix
|
||||
|
||||
curl "${CHANNEL_URL}/components-v${VERSION}.json" > components.json
|
||||
|
|
Loading…
Reference in a new issue