nixpkgs/pkgs/servers/nextcloud/packages/generate.sh
2023-06-13 14:45:16 -07:00

15 lines
312 B
Bash
Executable File

#!/usr/bin/env nix-shell
#! nix-shell -I nixpkgs=../../../.. -i bash -p nc4nix
set -e
set -u
set -o pipefail
set -x
export NEXTCLOUD_VERSIONS=$(nix-instantiate --eval -E 'import ./nc-versions.nix {}' -A e)
APPS=`cat nextcloud-apps.json | jq -r '.[]' | sed -z 's/\n/,/g;s/,$/\n/'`
nc4nix -apps $APPS
rm *.log