wireguard-tools: add updateScript
This commit is contained in:
parent
b7d1bd8efb
commit
f3ce2151db
@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Tools for the WireGuard secure network tunnel";
|
description = "Tools for the WireGuard secure network tunnel";
|
||||||
downloadPage = https://git.zx2c4.com/WireGuard/refs/;
|
downloadPage = https://git.zx2c4.com/WireGuard/refs/;
|
||||||
|
7
pkgs/tools/networking/wireguard-tools/update.sh
Executable file
7
pkgs/tools/networking/wireguard-tools/update.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/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"
|
Loading…
x
Reference in New Issue
Block a user