forked from mirrors/nixpkgs
3ba1a06a78
This contains the base infrastructure (including a basic update script) for maintaining Grafana plugins inside Nix, which, in a subsequent commit, will be used for allowing the NixOS Grafana module to automatically install plugins.
9 lines
299 B
Bash
Executable file
9 lines
299 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p curl jq common-updater-scripts
|
|
|
|
set -eu -o pipefail
|
|
|
|
readonly plugin_name="$1"
|
|
readonly latest_version="$(curl "https://grafana.com/api/plugins/${plugin_name}" | jq -r .version)"
|
|
update-source-version "grafanaPlugins.${plugin_name}" "$latest_version"
|