Skip to content

Commit b4b622d

Browse files
committed
rke2: use nurl instead of nix-prefetch in update script
There was an eval error when prefetching go dependencies with `nix-prefetch`. Since nix-prefetch hasn't got an update in a long time, I replaced it with `nurl`.
1 parent ece6f73 commit b4b622d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkgs/applications/networking/cluster/rke2/update-script.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell -i bash -p curl git gnugrep gnused yq-go nix-prefetch go
2+
#!nix-shell -i bash -p curl git gnugrep gnused yq-go nurl go
33

44
SHELL_FLAGS=$(set +o)
55
set -x -eu -o pipefail
@@ -54,8 +54,7 @@ cat << EOF > "${WORKDIR}/${CHANNEL_NAME}/versions.nix"
5454
EOF
5555

5656
set +e
57-
RKE2_VENDOR_HASH=$(nix-prefetch -I nixpkgs=$(git rev-parse --show-toplevel) \
58-
"{ sha256 }: rke2_${CHANNEL_NAME}.goModules.overrideAttrs (_: { vendorHash = sha256; })")
57+
RKE2_VENDOR_HASH=$(nurl -e "(import $(git rev-parse --show-toplevel) {}).rke2_${CHANNEL_NAME}.goModules")
5958
set -e
6059

6160
if [ -n "${RKE2_VENDOR_HASH:-}" ]; then

0 commit comments

Comments
 (0)