tailscale: format

This commit is contained in:
Sandro Jäckel 2021-08-09 11:52:45 +02:00
parent e61bbf2eb0
commit 483c89cf59
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -26,13 +26,9 @@ buildGoModule rec {
ldflags = [ "-X tailscale.com/version.Long=${version}" "-X tailscale.com/version.Short=${version}" ];
postInstall = ''
wrapProgram $out/bin/tailscaled --prefix PATH : ${
lib.makeBinPath [ iproute2 iptables ]
}
wrapProgram $out/bin/tailscaled --prefix PATH : ${lib.makeBinPath [ iproute2 iptables ]}
wrapProgram $out/bin/tailscale --suffix PATH : ${lib.makeBinPath [ procps ]}
wrapProgram $out/bin/tailscale --suffix PATH : ${
lib.makeBinPath [ procps ]
}
sed -i -e "s#/usr/sbin#$out/bin#" -e "/^EnvironmentFile/d" ./cmd/tailscaled/tailscaled.service
install -D -m0444 -t $out/lib/systemd/system ./cmd/tailscaled/tailscaled.service
'';