nixpkgs/pkgs/tools/networking/zerotierone/update.sh
Michael Livshin 15e8ee51d4
zerotierone: 1.10.3 -> 1.10.6 (#224992)
* zerotierone: 1.10.3 -> 1.10.6

They stopped vendoring Cargo deps before 1.10.4, hence the version
gap.

* zerotierone: add an update script
2023-04-17 14:05:52 +02:00

8 lines
376 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
version=$(curl --silent "https://api.github.com/repos/zerotier/ZeroTierOne/releases" | jq '.[0].tag_name' --raw-output)
curl --silent "https://raw.githubusercontent.com/zerotier/ZeroTierOne/$version/zeroidc/Cargo.lock" > "$(dirname "$0")/Cargo.lock"
update-source-version zerotierone "$version"