Revert "nextcloud{28,29}Packages: improve generation script"

This reverts commit 0fde477b80.
This commit is contained in:
Robert Schütz 2024-08-01 03:48:51 -07:00
parent 20265e85a6
commit 1ad15c918a

View File

@ -1,13 +1,11 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p jq gnused curl
#! nix-shell -I nixpkgs=../../../.. -i bash -p jq gnused curl
set -e
set -u
set -o pipefail
set -x
cd $(dirname -- "${BASH_SOURCE[0]}")
export NEXTCLOUD_VERSIONS=$(nix-instantiate --eval -E 'import ./nc-versions.nix {}' -A e)
APPS=$(jq -r 'keys|.[]' nextcloud-apps.json | sed -z 's/\n/,/g;s/,$/\n/')
@ -32,7 +30,7 @@ for v in ${NEXTCLOUD_VERSIONS//,/ }; do
# Get all of our variables
VERSION=$(jq -r ".[] | select(.id == \"${a}\") | .releases[0].version" "$APPS_PER_VERSION")
URL=$(jq -r ".[] | select(.id == \"${a}\") | .releases[0].download" "$APPS_PER_VERSION")
HASH=$(nix --extra-experimental-features nix-command store prefetch-file --json --hash-type sha256 --unpack "$URL" | jq -r .hash)
HASH=$(nix store prefetch-file --json --hash-type sha256 --unpack "$URL" | jq -r .hash)
HOMEPAGE=$(jq -r ".[] | select(.id == \"${a}\") | .website" "$APPS_PER_VERSION")
DESCRIPTION=$(jq ".[] | select(.id == \"${a}\") | .translations.en.description" "$APPS_PER_VERSION")
# Add all variables to the file