We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7783158 commit 125cc1cCopy full SHA for 125cc1c
lib/call-cabal-project-to-nix.nix
@@ -268,9 +268,14 @@ let
268
sourceRepos = sourceReposBuild;
269
inherit (repoResult) repos extra-hackages;
270
makeFixedProjectFile = ''
271
+ HOME=$(mktemp -d)
272
cp -f ${evalPackages.writeText "cabal.project" sourceRepoFixedProjectFile} ./cabal.project
273
chmod +w -R ./cabal.project
- '';
274
+ '' + pkgs.lib.strings.concatStrings (
275
+ map (f: ''
276
+ git config --global --add safe.directory ${f.location}/.git
277
+ '') sourceReposEval
278
+ );
279
# This will be used to replace refernces to the minimal git repos with just the index
280
# of the repo. The index will be used in lib/import-and-filter-project.nix to
281
# lookup the correct repository in `sourceReposBuild`. This avoids having
0 commit comments