From f4e67389ccf51c0d3a240f571724516ea9608926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 1 Feb 2017 10:45:17 +0100 Subject: [PATCH] buildStackProject: set GIT_SSL_CAINFO and LANG --- pkgs/development/haskell-modules/generic-stack-builder.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/generic-stack-builder.nix b/pkgs/development/haskell-modules/generic-stack-builder.nix index 13a939fcce9..cf1e189a38d 100644 --- a/pkgs/development/haskell-modules/generic-stack-builder.nix +++ b/pkgs/development/haskell-modules/generic-stack-builder.nix @@ -27,6 +27,12 @@ stdenv.mkDerivation (args // { LD_LIBRARY_PATH = makeLibraryPath (LD_LIBRARY_PATH ++ buildInputs); # ^^^ Internally uses `getOutput "lib"` (equiv. to getLib) + # Non-NixOS git needs cert + GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + + # Fixes https://github.com/commercialhaskell/stack/issues/2358 + LANG = "en_US.UTF-8"; + preferLocalBuild = true; configurePhase = args.configurePhase or ''