Skip to content

Commit

Permalink
When using Nix, depend on git.
Browse files Browse the repository at this point in the history
Partially addresses commercialhaskell#2287, as git is used in stack internally
to fetch package index and LTS.
  • Loading branch information
domenkozar committed Jun 9, 2017
1 parent c67b7f9 commit 89fa672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Behavior changes:

Other enhancements:

* When using Nix, nix-shell now depends always on git to prevent runtime errors
while fetching metadata
* Internal cleanup: configuration types are now based much more on lenses
* `stack build` and related commands now allow the user to disable debug symbol stripping
with new `--no-strip`, `--no-library-stripping`, and `--no-executable-shipping` flags,
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Nix.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ runShellAndExit mprojectRoot getCompilerVersion getCmdArgs = do
inContainer <- getInContainer
let pkgsInConfig = nixPackages (configNix config)
ghc = nixCompiler compilerVersion
pkgs = pkgsInConfig ++ [ghc]
pkgs = pkgsInConfig ++ [ghc, "git"]
pkgsStr = "[" <> T.intercalate " " pkgs <> "]"
pureShell = nixPureShell (configNix config)
addGCRoots = nixAddGCRoots (configNix config)
Expand Down

0 comments on commit 89fa672

Please sign in to comment.