From b09e31159179854eb0abbabd7d5b60b8a53210c5 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 9 Aug 2021 00:13:50 -0700 Subject: [PATCH] tailscale: fix runtime dependency on procps ``` sudo tailscale up --advertise-exit-node Warning: couldn't check net.ipv4.ip_forward (exec: "sysctl": executable file not found in $PATH). ``` --- pkgs/servers/tailscale/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index 4e0d3d0b701f..d22d358d4480 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -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 '';