Skip to content

Commit

Permalink
Workaround for haskell/cabal#5444
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Feb 29, 2024
1 parent 5ce18d0 commit efb0e30
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,10 @@ let
echo >> ./cabal.project
'' +
# Add replacement `source-repository-package` blocks pointing to the minimal git repos
# Using `optional-packages:` to work around https://github.com/haskell/cabal/issues/5444
( pkgs.lib.strings.concatMapStrings (f: ''
echo "source-repository-package" >> ./cabal.project
echo " type: git" >> ./cabal.project
echo " location: file://${f.location}" >> ./cabal.project
echo " subdir: ${builtins.concatStringsSep " " f.subdirs}" >> ./cabal.project
echo " tag: ${f.tag}" >> ./cabal.project
echo "optional-packages:" >> ./cabal.project
echo " ${f.location}/${builtins.concatStringsSep " " f.subdirs}" >> ./cabal.project
'') sourceReposEval
));
# This will be used to replace refernces to the minimal git repos with just the index
Expand Down

0 comments on commit efb0e30

Please sign in to comment.