Skip to content

Commit 8b786e5

Browse files
committed
Add comment
1 parent 2dcfa16 commit 8b786e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ let
678678
# Setting the desired `index-state` here in case it is not
679679
# in the cabal.project file. This will further restrict the
680680
# packages used by the solver (cached-index-state >= index-state-max).
681+
# Cabal treats `--index-state` > the last known package as an error,
682+
# so we only include this if it is < cached-index-state.
681683
pkgs.lib.optionalString (index-state != null && index-state < cached-index-state) "--index-state=${index-state}"
682684
} \
683685
-w ${

0 commit comments

Comments
 (0)