tailscale: add lsof dependency on darwin (#375407)
This commit is contained in:
commit
f381003797
@ -8,6 +8,7 @@
|
|||||||
getent,
|
getent,
|
||||||
iproute2,
|
iproute2,
|
||||||
iptables,
|
iptables,
|
||||||
|
lsof,
|
||||||
shadow,
|
shadow,
|
||||||
procps,
|
procps,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
@ -45,7 +46,8 @@ buildGo123Module {
|
|||||||
|
|
||||||
vendorHash = "sha256-81UOjoC5GJqhNs4vWcQ2/B9FMaDWtl0rbuFXmxbu5dI=";
|
vendorHash = "sha256-81UOjoC5GJqhNs4vWcQ2/B9FMaDWtl0rbuFXmxbu5dI=";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ makeWrapper ] ++ [
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -77,6 +79,16 @@ buildGo123Module {
|
|||||||
moveToOutput "bin/derper" "$derper"
|
moveToOutput "bin/derper" "$derper"
|
||||||
moveToOutput "bin/derpprobe" "$derper"
|
moveToOutput "bin/derpprobe" "$derper"
|
||||||
''
|
''
|
||||||
|
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
wrapProgram $out/bin/tailscaled \
|
||||||
|
--prefix PATH : ${
|
||||||
|
lib.makeBinPath [
|
||||||
|
# Uses lsof only on macOS to detect socket location
|
||||||
|
# See tailscale safesocket_darwin.go
|
||||||
|
lsof
|
||||||
|
]
|
||||||
|
}
|
||||||
|
''
|
||||||
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||||
wrapProgram $out/bin/tailscaled \
|
wrapProgram $out/bin/tailscaled \
|
||||||
--prefix PATH : ${
|
--prefix PATH : ${
|
||||||
|
Loading…
x
Reference in New Issue
Block a user