mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
k3s: use nurl instead of nix-prefetch in update script (#356772)
This commit is contained in:
commit
25c60ad287
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl gnugrep gnused jq yq-go nix-prefetch
|
||||
#!nix-shell -i bash -p curl gnugrep gnused jq nurl yq-go
|
||||
|
||||
set -x -eu -o pipefail
|
||||
|
||||
@ -141,7 +141,7 @@ cat >versions.nix <<EOF
|
||||
EOF
|
||||
|
||||
set +e
|
||||
K3S_VENDOR_HASH=$(nix-prefetch -I nixpkgs=${NIXPKGS_ROOT} "{ sha256 }: (import ${NIXPKGS_ROOT}. {}).k3s_1_${MINOR_VERSION}.goModules.overrideAttrs (_: { vendorHash = sha256; })")
|
||||
K3S_VENDOR_HASH=$(nurl -e "(import ${NIXPKGS_ROOT}. {}).k3s_1_${MINOR_VERSION}.goModules")
|
||||
set -e
|
||||
|
||||
if [ -n "${K3S_VENDOR_HASH:-}" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user