Commit e777c043 authored by Valentin Reis's avatar Valentin Reis

print env vars when running nix-build commands.

parent 4f26826d
Pipeline #5759 passed with stage
in 21 seconds
...@@ -324,6 +324,8 @@ wrap nixCommand target sa@ArgsCommon {..} = sh $ do ...@@ -324,6 +324,8 @@ wrap nixCommand target sa@ArgsCommon {..} = sh $ do
when (verbosity == Verbose) $ liftIO $ print sa when (verbosity == Verbose) $ liftIO $ print sa
_ <- setupSystem sa _ <- setupSystem sa
printCommand $ pack nixc <> " " <> pack (unwords arglist) printCommand $ pack nixc <> " " <> pack (unwords arglist)
void $ shell "echo \"TMPDIR=$TMPDIR\"" empty
void $ shell "echo \"XDG_CACHE_HOME=$XDG_CACHE_HOME\"" empty
liftIO (executeFile nixc True arglist Nothing) liftIO (executeFile nixc True arglist Nothing)
where where
nixc = toCommand nixCommand nixc = toCommand nixCommand
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment