aboutsummaryrefslogtreecommitdiff
path: root/bumperate.sh
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-11-08 07:54:17 -0500
committerXe Iaso <me@xeiaso.net>2023-11-08 07:54:17 -0500
commit4a899c13abe723d066a85eb54153ca699094bbd1 (patch)
treefbae641df788c5f5f673a2984152e5bf6c0b9250 /bumperate.sh
parent0b5cb823f8ac2b20badbf53efdcfabae6f344f10 (diff)
downloadx-4a899c13abe723d066a85eb54153ca699094bbd1.tar.xz
x-4a899c13abe723d066a85eb54153ca699094bbd1.zip
cmd/sanguisuga: use tailscale/wireguard-go here
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'bumperate.sh')
-rwxr-xr-xbumperate.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/bumperate.sh b/bumperate.sh
new file mode 100755
index 0000000..8203e6d
--- /dev/null
+++ b/bumperate.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+OUT=$(mktemp -d -t nar-hash-XXXXXX)
+rm -rf $OUT
+
+go mod vendor -o $OUT
+go run tailscale.com/cmd/nardump --sri $OUT >go.mod.sri
+rm -rf $OUT
+
+perl -pi -e "s,# nix-direnv cache busting line:.*,# nix-direnv cache busting line: $(cat go.mod.sri)," flake.nix