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/libraries/hipcub | |
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/libraries/hipcub')
-rw-r--r-- | pkgs/development/libraries/hipcub/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/hipcub/default.nix b/pkgs/development/libraries/hipcub/default.nix index 9d451d866cdce..29310be853680 100644 --- a/pkgs/development/libraries/hipcub/default.nix +++ b/pkgs/development/libraries/hipcub/default.nix @@ -81,7 +81,7 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq common-updater-scripts - json="$(curl -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipCUB/releases?per_page=1")" + json="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/ROCmSoftwarePlatform/hipCUB/releases?per_page=1")" repoVersion="$(echo "$json" | jq '.[0].name | split(" ") | .[1]' --raw-output)" rocmVersion="$(echo "$json" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" update-source-version hipcub "$repoVersion" --ignore-same-hash --version-key=repoVersion |