We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dcfa16 commit 8b786e5Copy full SHA for 8b786e5
lib/call-cabal-project-to-nix.nix
@@ -678,6 +678,8 @@ let
678
# Setting the desired `index-state` here in case it is not
679
# in the cabal.project file. This will further restrict the
680
# 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.
683
pkgs.lib.optionalString (index-state != null && index-state < cached-index-state) "--index-state=${index-state}"
684
} \
685
-w ${
0 commit comments