woodpecker: remove deprecated subcommands of nix hash
This commit is contained in:
@@ -28,5 +28,5 @@ sed -i -E -e "s#version = \".*\"#version = \"$version\"#" common.nix
|
||||
|
||||
# Woodpecker repository
|
||||
src_hash=$(nix-prefetch-url --type sha256 --unpack "https://github.com/woodpecker-ci/woodpecker/releases/download/v$version/woodpecker-src.tar.gz")
|
||||
src_hash=$(nix --extra-experimental-features nix-command hash to-sri --type sha256 "$src_hash")
|
||||
src_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$src_hash")
|
||||
sed -i -E -e "s#srcHash = \".*\"#srcHash = \"$src_hash\"#" common.nix
|
||||
|
||||
Reference in New Issue
Block a user