diff options
author | Madoura <madouura@gmail.com> | 2022-11-28 01:33:10 -0600 |
---|---|---|
committer | Madoura <madouura@gmail.com> | 2022-11-28 02:25:56 -0600 |
commit | 3ced8179cd48d784d8a68b4d9c5cd332a3ed48e4 (patch) | |
tree | 42dc008f7fe6514008f6e3f3fb2920337d061fdd /pkgs/development/compilers | |
parent | 2a44f631fa69676d7f63d7833c1e98ec7632ba00 (diff) |
rocm-related: optional GITHUB_TOKEN for update script
hip: optional GITHUB_TOKEN for update script rocm-llvm: optional GITHUB_TOKEN for update script clang-ocl: optional GITHUB_TOKEN for update script hipcub: optional GITHUB_TOKEN for update script hipsparse: optional GITHUB_TOKEN for update script miopen: optional GITHUB_TOKEN for update script miopengemm: optional GITHUB_TOKEN for update script rccl: optional GITHUB_TOKEN for update script rocblas: optional GITHUB_TOKEN for update script rocclr: optional GITHUB_TOKEN for update script rocfft: optional GITHUB_TOKEN for update script rocm-comgr: optional GITHUB_TOKEN for update script rocm-device-libs: optional GITHUB_TOKEN for update script rocm-opencl-runtime: optional GITHUB_TOKEN for update script rocm-runtime: optional GITHUB_TOKEN for update script rocm-thunk: optional GITHUB_TOKEN for update script rocmlir: optional GITHUB_TOKEN for update script rocprim: optional GITHUB_TOKEN for update script rocrand: optional GITHUB_TOKEN for update script rocsparse: optional GITHUB_TOKEN for update script rocthrust: optional GITHUB_TOKEN for update script rocwmma: optional GITHUB_TOKEN for update script tensile: optional GITHUB_TOKEN for update script rocm-cmake: optional GITHUB_TOKEN for update script rocminfo: optional GITHUB_TOKEN for update script rocm-smi: optional GITHUB_TOKEN for update script
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/hip/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/compilers/llvm/rocm/llvm.nix | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/hip/default.nix b/pkgs/development/compilers/hip/default.nix index e27f3c9a9817d..6aa5463d4bf1c 100644 --- a/pkgs/development/compilers/hip/default.nix +++ b/pkgs/development/compilers/hip/default.nix @@ -171,7 +171,7 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq common-updater-scripts nix-prefetch-github - version="$(curl -sL "https://api.github.com/repos/ROCm-Developer-Tools/HIP/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)" + version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCm-Developer-Tools/HIP/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)" current_version="$(grep "version =" pkgs/development/compilers/hip/default.nix | head -n1 | cut -d'"' -f2)" if [[ "$version" != "$current_version" ]]; then tarball_meta="$(nix-prefetch-github ROCm-Developer-Tools HIP --rev "rocm-$version")" @@ -183,7 +183,7 @@ stdenv.mkDerivation (finalAttrs: { echo hip already up-to-date fi - version="$(curl -sL "https://api.github.com/repos/ROCm-Developer-Tools/hipamd/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)" + version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCm-Developer-Tools/hipamd/tags" | jq '.[].name | split("-") | .[1] | select( . != null )' --raw-output | sort -n | tail -1)" current_version="$(grep "version =" pkgs/development/compilers/hip/default.nix | tail -n1 | cut -d'"' -f2)" if [[ "$version" != "$current_version" ]]; then tarball_meta="$(nix-prefetch-github ROCm-Developer-Tools hipamd --rev "rocm-$version")" diff --git a/pkgs/development/compilers/llvm/rocm/llvm.nix b/pkgs/development/compilers/llvm/rocm/llvm.nix index 6c62b02ed1977..6e3be2afc1781 100644 --- a/pkgs/development/compilers/llvm/rocm/llvm.nix +++ b/pkgs/development/compilers/llvm/rocm/llvm.nix @@ -66,7 +66,7 @@ in stdenv.mkDerivation (finalAttrs: { #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq common-updater-scripts nix-prefetch-github - version="$(curl -sL "https://api.github.com/repos/RadeonOpenCompute/llvm-project/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" + version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/RadeonOpenCompute/llvm-project/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" current_version="$(grep "version =" pkgs/development/compilers/llvm/rocm/default.nix | cut -d'"' -f2)" if [[ "$version" != "$current_version" ]]; then tarball_meta="$(nix-prefetch-github RadeonOpenCompute llvm-project --rev "rocm-$version")" |