Skip to content

Commit

Permalink
Pass ca authority by env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bendlas committed Apr 5, 2016
1 parent 14044fb commit 76179d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Distribution/Nix/Fetch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ prefetchHelper :: String -> [String]
prefetchHelper fetcher args go = mapException FetchError helper
where
helper = do
env <- addToEnv "PRINT_PATH" "1"
env <- ( addToEnv "PRINT_PATH" "1"
>> addToEnv "SSL_CERT_FILE" "/etc/ssl/certs/ca-certificates.crt")
runInteractiveProcess fetcher args Nothing (Just env) go

addToEnv :: MonadIO m => String -> String -> m [(String, String)]
Expand Down

0 comments on commit 76179d6

Please sign in to comment.