biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / teleport / 0001-fix-add-nix-path-to-exec-env.patch
blob328dac4145b2b397425b1b292a82e3c71a32ed08
1 From e3651ca79c0edb66c04e0d3381f3b0b6f76d37d2 Mon Sep 17 00:00:00 2001
2 From: 5aaee9 <jiduye@gmail.com>
3 Date: Thu, 24 Mar 2022 17:34:38 +0800
4 Subject: [PATCH] fix: add nix path to exec env
6 ---
7 lib/srv/exec.go | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/lib/srv/exec.go b/lib/srv/exec.go
11 index 253fbafef..815a2e1e0 100644
12 --- a/lib/srv/exec.go
13 +++ b/lib/srv/exec.go
14 @@ -41,9 +41,9 @@ import (
17 const (
18 - defaultPath = "/bin:/usr/bin:/usr/local/bin:/sbin"
19 + defaultPath = "/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/bin:/usr/bin:/usr/local/bin:/sbin"
20 defaultEnvPath = "PATH=" + defaultPath
21 - defaultRootPath = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
22 + defaultRootPath = "/run/wrappers/bin:/etc/profiles/per-user/root/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
23 defaultEnvRootPath = "PATH=" + defaultRootPath
24 defaultTerm = "xterm"
25 defaultLoginDefsPath = "/etc/login.defs"
26 --
27 2.32.0 (Apple Git-132)