mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
Merge pull request #133230 from jonringer/fix-tailscale
tailscale: fix runtime dependency on procps
This commit is contained in:
commit
c2bc7e7ecf
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user