diff options
author | Guanpeng Xu | 2024-02-24 10:25:57 -0800 |
---|---|---|
committer | Guanpeng Xu | 2024-02-24 23:54:01 -0800 |
commit | 42f03f3229a8da79d54ffea0ec6d989185b776d1 (patch) | |
tree | 9babeef6cb39b7b81bdb9574155af705d8d37408 /pkgs/by-name/yo | |
parent | 956a23b5d21bd2ab9f9da14f570df9438c99d9a0 (diff) |
yourkit-java: 2023.9-b107 -> 2023.9-b109
Diffstat (limited to 'pkgs/by-name/yo')
-rwxr-xr-x | pkgs/by-name/yo/yourkit-java/update.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/by-name/yo/yourkit-java/update.sh b/pkgs/by-name/yo/yourkit-java/update.sh index 12fa621f27e6..6794bfce57e1 100755 --- a/pkgs/by-name/yo/yourkit-java/update.sh +++ b/pkgs/by-name/yo/yourkit-java/update.sh @@ -1,12 +1,13 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl gnused gawk nix-prefetch +#!nix-shell -i bash -p coreutils curl gawk gnused nix-prefetch set -euo pipefail ROOT="$(dirname "$(readlink -f "$0")")" -NIX_DRV="$ROOT/package.nix" +DRV_BASE=package.nix +NIX_DRV="$ROOT/$DRV_BASE" if [[ ! -f "$NIX_DRV" ]]; then - echo "ERROR: cannot find default.nix in $ROOT" + echo "ERROR: cannot find $DRV_BASE in $ROOT" exit 1 fi @@ -41,6 +42,7 @@ function update_hash () { } version=$(retrieve_latest_version) +sed -i -e "s|^.*version.*=.*\".*$| version = \"$version\";|" $NIX_DRV for arch in arm64 x64; do update_hash $arch $version done |