Merge pull request #133230 from jonringer/fix-tailscale

tailscale: fix runtime dependency on procps
This commit is contained in:
Sandro 2021-08-09 11:49:05 +02:00 committed by GitHub
commit c2bc7e7ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2 }:
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2, procps }:
buildGoModule rec {
pname = "tailscale";
@ -29,6 +29,10 @@ buildGoModule rec {
wrapProgram $out/bin/tailscaled --prefix PATH : ${
lib.makeBinPath [ iproute2 iptables ]
}
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
'';