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 1069180 commit d7004eeCopy full SHA for d7004ee
builder/make-config-files.nix
@@ -102,8 +102,11 @@ let
102
done
103
104
${ # Note: we pass `clear` first to ensure that we never consult the implicit global package db.
105
- flagsAndConfig "package-db" ["clear" "$configFiles/${packageCfgDir}"]
+ # However in `cabal.config` `cabal` requires `global` to be first.
106
+ flagsAndConfig "package-db" ["clear"]
107
}
108
+ echo "package-db: global" >> $configFiles/cabal.config
109
+ ${ flagsAndConfig "package-db" ["$configFiles/${packageCfgDir}"] }
110
111
echo ${lib.concatStringsSep " " (lib.mapAttrsToList (fname: val: "--flags=${lib.optionalString (!val) "-" + fname}") flags)} >> $configFiles/configure-flags
112
0 commit comments