Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argonix
Commits
3ddf429e
Commit
3ddf429e
authored
Mar 06, 2019
by
Valentin Reis
Browse files
added PATH inheritance.
parent
9e6d3ca6
Pipeline
#5836
passed with stage
in 6 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Argonix.hs
View file @
3ddf429e
...
...
@@ -339,11 +339,13 @@ setupSystem target sa = do
varXDG_CACHE_HOME
<-
rpVerbose
"mktemp"
[
"-d"
,
"/tmp/deletable-nix-cache-XXXX"
]
[]
varTMPDIR
<-
createAndSetTMPDIR
"nixtmpdir"
varNIX_PATH
<-
toS
<$>
SE
.
getEnv
"NIX_PATH"
varPATH
<-
toS
<$>
SE
.
getEnv
"PATH"
let
envVars
=
[
(
"XDG_CACHE_HOME"
,
varXDG_CACHE_HOME
)
,
(
"TMPDIR"
,
varTMPDIR
)
,
(
"NIX_PATH"
,
varNIX_PATH
)
,
(
"PATH"
,
varPATH
)
]
when
(
isTarget
target
)
$
setupNodeOs
envVars
...
...
@@ -416,10 +418,6 @@ wrap nixCommand target sa@ArgsCommon {..} = do
remotely
::
Text
->
ArgsCommon
->
ArgsRemote
->
IO
()
remotely
_
_
_
=
putText
"unsupported in this version"
>>
undefined
-- Sources of impurity for this build are: "/tmp/ /etc/argo/ /var/run/
-- /var/lock/. Moreover, sandboxing is disabled, in particular because of:
-- /tmp/nrm-* sockets, /etc/argo, /var/run/, /var/lock/ which all need read
-- access. until these components are patched to allow for alternative paths,
-- no sandbox use is possible. If sandbox paths were read only we could add:
{-, "--option"-}
{-, "build-use-sandbox"-}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment