Skip to content

Commit afb52d9

Browse files
committed
Fix (p.shellFor {}).ghc
1 parent 417a7da commit afb52d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

builder/ghc-for-component-wrapper.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ let
147147
drv = runCommand "${componentName}-${ghc.name}-env" {
148148
preferLocalBuild = true;
149149
passthru = {
150+
inherit targetPrefix;
150151
inherit (ghc) version meta;
151152
};
152153
propagatedBuildInputs = configFiles.libDeps;
@@ -161,4 +162,4 @@ let
161162
in {
162163
inherit script drv targetPrefix;
163164
baseGhc = ghc;
164-
}
165+
}

builder/shell-for.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ in
181181
NIX_GHC_LIBDIR = ghcEnv.drv + "/" + configFiles.libDir;
182182

183183
passthru = (mkDrvArgs.passthru or {}) // {
184-
ghc = ghcEnv;
184+
ghc = ghcEnv.drv;
185185
inherit configFiles;
186186
};
187187
} // lib.optionalAttrs exactDeps {

0 commit comments

Comments
 (0)