Skip to content

Commit 1aa5e2b

Browse files
committed
More fixes for shellFor
1 parent afb52d9 commit 1aa5e2b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

builder/ghc-for-component-wrapper.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ let
147147
drv = runCommand "${componentName}-${ghc.name}-env" {
148148
preferLocalBuild = true;
149149
passthru = {
150-
inherit targetPrefix;
150+
inherit script targetPrefix;
151151
inherit (ghc) version meta;
152152
};
153153
propagatedBuildInputs = configFiles.libDeps;

builder/make-config-files.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ let
204204
drv = runCommand "${ghc.targetPrefix}${fullName}-config" {
205205
nativeBuildInputs = [ghc];
206206
propagatedBuildInputs = libDeps;
207+
passthru = {
208+
inherit (ghc) targetPrefix;
209+
inherit script libDeps ghcCommand ghcCommandCaps libDir packageCfgDir component;
210+
};
207211
} (''
208212
mkdir -p $out
209213
configFiles=$out

builder/shell-for.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ in
182182

183183
passthru = (mkDrvArgs.passthru or {}) // {
184184
ghc = ghcEnv.drv;
185-
inherit configFiles;
185+
configFiles.drv;
186186
};
187187
} // lib.optionalAttrs exactDeps {
188-
CABAL_CONFIG = "${configFiles}/cabal.config";
188+
CABAL_CONFIG = "${configFiles.drv}/cabal.config";
189189
})

0 commit comments

Comments
 (0)