nixpkgs/pkgs/tools/networking/wireguard-tools/update.sh

8 lines
272 B
Bash
Raw Normal View History

2019-06-01 21:17:25 +01:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnused common-updater-scripts
set -eu -o pipefail
version="$(curl -sL https://build.wireguard.com/distros.txt | sed -n 's/^upstream\tkmodtools\t\([^\t]\+\)\t.*/\1/p')"
update-source-version wireguard-tools "$version"