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
4ed4e791
Commit
4ed4e791
authored
Mar 01, 2019
by
Valentin Reis
Browse files
tmpdir test.
parent
a37af9b9
Pipeline
#5743
passed with stage
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Argonix.hs
View file @
4ed4e791
...
...
@@ -8,7 +8,8 @@ Module : Main
Description : argonix
Copyright : (c) Valentin Reis, 2018
License : MIT
Maintainer : fre@freux.fr -}
Maintainer : fre@freux.fr
-}
module
Main
where
...
...
@@ -257,7 +258,7 @@ setupSystem sa = do
vshell
"sudo rm -rf nixtmpdir"
empty
>>=
\
case
ExitSuccess
->
printInfo
"removed ./result"
ExitFailure
n
->
die
(
"Failed to remove ./result "
<>
repr
n
)
liftIO
$
createAndSetTMPDIR
"./
nixtmpdir
"
liftIO
$
createAndSetTMPDIR
"./
TMPDIR
"
doVerbose
$
printInfo
"running nix-build for the containers attribute."
doVerbose
$
printCommand
$
"nix-build "
<>
pack
(
unwords
(
nixArguments
"containers"
sa
))
...
...
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