Skip to content

Commit

Permalink
Merge pull request commercialhaskell#3205 from domenkozar/nix-use-git
Browse files Browse the repository at this point in the history
When using Nix, depend on git.
  • Loading branch information
mgsloan authored Jun 11, 2017
2 parents 62220ce + 89fa672 commit aa063a5
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 @@ -147,6 +147,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 aa063a5

Please sign in to comment.